I’m not very familiar with KWin scripting, but it has no errors when running it in plasma-interactiveconsole --kwin so I assume there weren’t any api name changes. Does anyone know how to fix this?
Edit:I’ve just tested this and it seems to work, though it seems like it just centers windows.
If that’s what the script is meant to be doing, could you not go to System Settings and under Window Management → Window Behavior → Advanced and set Window Placement to Centered?
Edit 2: Never mind, I see that still cascades windows in the center.