Bug 457822

Summary: client.frameGeometry.width doesn't work on Wayland
Product: [Plasma] kwin Reporter: Max <maximtsyba>
Component: scriptingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: margual56
Priority: NOR    
Version: 5.25.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Max 2022-08-13 02:34:24 UTC
SUMMARY
In my KWin script, I use client.frameGeometry API to change window's width like this:		
client.frameGeometry.width = desiredWidth;

While in X11 session this code works just fine, in Wayland window's width doesn't change. 
At the same time, modifying .x, .y and .height works as expected. 

SOFTWARE/OS VERSIONS

KDE Plasma: 5.25.4
KDE Frameworks: 5.96.0
QT Version: 5.15.5
Kernel: 5.13.0-52-generic (64-bit)
Comment 1 Vlad Zahorodnii 2023-01-17 12:23:25 UTC
Can you provide an example script please? Note that geometry updates are async on wayland. If you do

  window.frameGeometry = myNewGeometry;

the frame geometry may not be updated until the client repaints the window. I'm surprised that .height updates are applied immediately though.
Comment 2 Bug Janitor Service 2023-02-01 05:03:12 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2023-02-16 03:48:33 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!