Updated KWin Script to move all windows to one screen to work with 6

I had a need to move all windows to “screen 0” and found this KWin Script: (I can’t post links but GitHub user richrd project: moveallwindowstoscreen). However, it doesn’t work with KDE 6. So I fixed it:

(again, no link, but GitHub user wd5gnr project: moveallwindowstoscreen6).

Packaging needs a new directive (along with new command in the README).

Workspace wrapper changes the name of one API call.

Moving to screen is by an "output pointer" instead of a screen number, so you have to look it up in an array.

Do a diff if you really want to see what changed.

1 Like