workspace: Add "xdg activation"-only mode

Never auto-activate Wayland windows when "Extreme" focus stealing
prevention is configured. This allows to more easily find places
where window activation isn't properly implemented, such as on
application startup.
This commit is contained in:
Kai Uwe Broulik 2023-11-16 18:49:42 +01:00
parent 433b753360
commit 40aa5aceb8

View file

@ -797,7 +797,10 @@ void Workspace::addWaylandWindow(Window *window)
updateClientArea();
}
if (window->wantsInput() && !window->isMinimized()) {
activateWindow(window);
// Never activate a window on its own in "Extreme" mode.
if (options->focusStealingPreventionLevel() < 4) {
activateWindow(window);
}
}
updateTabbox();
Q_EMIT windowAdded(window);