How to reproduce: 1. Enable "Remove empty desktops" 2. Have at least two desktops open 3. On one of the desktops, have only one window 4. Move last window to another desktop (for example using "Window One Desktop to the left" KWin shortcut) 5. That desktop will not be removed even though it is empty. Is there a way to move a window to another desktop through this script that I'm missing?
How to reproduce:
Is there a way to move a window to another desktop through this script that I'm missing?