options: enable separate screen focus by default

When the user closes the active window, with separate screen focus disabled, a
window on the other screen might get activated, which also switches the active
screen to the other one. As this is quite unintuitive, and in my testing having
separate screen focus enabled didn't have any other unintuitive side effects,
this commit enables separate screen focus by default
This commit is contained in:
Xaver Hugl 2024-06-24 21:51:22 +02:00
parent c3c3f56e98
commit d0c4aeeb08
4 changed files with 4 additions and 3 deletions

View file

@ -211,6 +211,7 @@ void LockScreenTest::init()
workspace()->setActiveOutput(QPoint(640, 512));
input()->pointer()->warp(QPoint(640, 512));
options->setSeparateScreenFocus(false);
}
void LockScreenTest::cleanup()

View file

@ -132,7 +132,7 @@
</entry>
<entry key="SeparateScreenFocus" type="Bool">
<default>false</default>
<default>true</default>
</entry>
<entry key="FocusStealingPreventionLevel" type="Int">

View file

@ -98,7 +98,7 @@
<default>false</default>
</entry>
<entry name="SeparateScreenFocus" type="Bool">
<default>false</default>
<default>true</default>
</entry>
<entry name="RollOverDesktops" type="Bool">
<default>false</default>

View file

@ -40,7 +40,7 @@ Options::Options(QObject *parent)
, m_delayFocusInterval(0)
, m_shadeHover(false)
, m_shadeHoverInterval(0)
, m_separateScreenFocus(false)
, m_separateScreenFocus(true)
, m_placement(PlacementNone)
, m_activationDesktopPolicy(Options::defaultActivationDesktopPolicy())
, m_borderSnapZone(0)