KWin Scripts can't detect new clients on Wayland, unless the program is using XWayland. Steps to reproduce: 1. Open the "WM Console" through KRunner. 2. Insert the following: workspace.clientAdded.connect(function() { print("added"); }) workspace.clientRemoved.connect(function() { print("removed"); }) 3. Execute 4. Start a Qt program and the script prints nothing, start a GTK2 program and the script prints "added". When removing a Qt program the script prints "removed".
Yes, this is on purpose. We don't have a security concept yet for Scripts on Wayland, so Wayland windows are excluded from scripting. I have an idea for how to implement the security. Once that is in, scripting will be activated.
wondering whether there is any progress regarding this issue... thanks!