https://bugs.kde.org/show_bug.cgi?id=403172
Bug ID: 403172 Summary: client geometry can not be changed in desktopPresenceChanged callback when using the action menu or virtual desktop grid view Product: kwin Version: 5.14.5 Platform: Archlinux Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: scripting Assignee: kwin-bugs-n...@kde.org Reporter: lingtj...@hotmail.com Target Milestone: --- SUMMARY desktopPresenceChanged(KWin::Client *client, int desktop) signal does not allow changing the client geometry when using the action menu or by dragging the client between virtual desktops in virtual desktop grid view but it does work correctly when moving clients between virtual desktops using global shortcuts. STEPS TO REPRODUCE 1. open WM console 2. run this small demonstration script ``` workspace.desktopPresenceChanged.connect (function (client) { print('current geometry: x=' + client.geometry.x + ', y=' + client.geometry.y + ', width=' + client.geometry.width + ', height=' + client.geometry.height); var geometry = {x: 100, y: 100, width: 200, height: 200}; client.geometry = geometry; client.opacity = 0.8; }); ``` 3. open a terminal 4. resize and move the terminal such that it's x, y, width and height are not 100, 100, 200 and 200 5a. move the terminal to a different virtual desktop by opening the action menu (default top left corner) and selecting `move to desktop` and move it to any other virtual desktop DIFFERENT SCENARIOS 5b. move the terminal to a different virtual desktop by opening the virtual desktop grid view (default shortcut Ctrl+F8) and then dragging the client to a different virtual desktop 5c. move the terminal to a different virtual desktop by using any of the global shortcuts such as `Switch one desktop down` OBSERVED RESULT 1. if you do step 5a or step 5b you will see that the client does accept the opacity parameter and takes on an opacity of 0.8 but it does not accept the geometry of 100, 100, 200, 200 2. if you do step 5c instead of 5a or 5b you will see that the client correctly accepts the geometry of 100, 100, 200, 200 EXPECTED RESULT 1. expect the client to accept the new geometry supplied just like the opacity but it ignores the geometry when moving clients between virtual desktops using the action menu or virtual desktop grid view SOFTWARE/OS VERSIONS latest ArchLinux packages -- You are receiving this mail because: You are watching all bug changes.