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:
parent
433b753360
commit
40aa5aceb8
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue