workspace: Don't activate desktop window when it gets added
Unless there is no focus window. Matches X11 behavior.
Otherwise (re)starting plasmashell would pull focus away from whatever window is currently focussed.
Restarted plasmashell, my terminal didn’t lose focus anymore.
The X11Window
code actuallly does:
if (activeWindow() == nullptr && should_get_focus.count() == 0) {
activateWindow(findDesktop(true, VirtualDesktopManager::self()->currentDesktop()));
}