SUMMARY The kwin scripting interface has no access to wayland clients. workspace.clientAdded does not fire for them, workspace.clientList does not contain them. This renders the interface moot on wayland. STEPS TO REPRODUCE 1. Run a script that goes through workspace.clientlist 2. See it only shows X11/XWayland clients 3. Switch back to X11 OBSERVED RESULT No wayland clients seen. EXPECTED RESULT Wayland clients seen. SOFTWARE/OS VERSIONS Windows: MacOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.14.3 KDE Frameworks Version: 5.52.0 Qt Version: 5.11.2 ADDITIONAL INFORMATION
*** Bug 401308 has been marked as a duplicate of this bug. ***
Hi! Are you the author of https://github.com/faho/kwin-tiling?
Yes, I am.
Cool! I uploaded patches to expose wayland clients to the scripting api earlier today: * https://phabricator.kde.org/D17096 * https://phabricator.kde.org/D17097 In order to make your script work with wayland clients, you'll have to make the following checks X11-specific: * https://github.com/faho/kwin-tiling/blob/master/contents/code/tile.js#L215 * https://github.com/faho/kwin-tiling/blob/master/contents/code/tile.js#L283 * https://github.com/faho/kwin-tiling/blob/master/contents/code/tile.js#L300
How exactly would I do that? Is there some way to detect that we're running under wayland? Or that the client is a wayland one, given that I'd assume XWayland clients still have a basicUnit? (The "managed" check is pure defensive programming anyway, I've never seen that fail)
This issue report is quite old and Vlad mentions, that he added some code to fix this issue. Can you please confirm, that it still persists with Plasma 5.23?
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!
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!