kwin: default to no focus stealing prevention

the only reason I can think of to not give focus to window is when a
okular in presentation mode or gwenview in fullscreen mode is the active
window, i.e. a fullscreen window but that may need additional hint for the
window manager

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-12 14:01:21 +03:00
parent e637b6dcdb
commit 3ee6dded37
2 changed files with 2 additions and 4 deletions

View file

@ -269,9 +269,7 @@ void KFocusConfig::load(void)
// on by default for non click to focus policies
setActiveMouseScreen(cg.readEntry(KWIN_ACTIVE_MOUSE_SCREEN, getFocus() != 0));
// setFocusStealing( cg.readEntry(KWIN_FOCUS_STEALING, 2 ));
// TODO default to low for now
setFocusStealing(cg.readEntry(KWIN_FOCUS_STEALING, 1));
setFocusStealing(cg.readEntry(KWIN_FOCUS_STEALING, 0));
emit KCModule::changed(false);

View file

@ -109,7 +109,7 @@
<default>true</default>
</entry>
<entry name="FocusStealingPreventionLevel" type="Int">
<default>1</default>
<default>0</default>
<min>0</min>
<max>4</max>
</entry>