Skip to content

workspace: Don't activate desktop window when it gets added

Kai Uwe Broulik requested to merge work/kbroulik/dont-auto-activate-desktop into master

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()));
}

Merge request reports