Change the default for "active screen follows mouse" to true

This commit is contained in:
Xaver Hugl 2021-04-22 21:05:59 +02:00
parent a21571c832
commit 102f32112f
4 changed files with 3 additions and 8 deletions

View file

@ -200,7 +200,7 @@
<item row="6" column="1">
<widget class="QCheckBox" name="kcfg_ActiveMouseScreen">
<property name="whatsThis">
<string>When this option is enabled, the active Xinerama screen (where new windows appear, for example) is the screen containing the mouse pointer. When disabled, the active Xinerama screen is the screen containing the focused window. By default this option is disabled for Click to focus and enabled for other focus policies.</string>
<string>When this option is enabled, the active Xinerama screen (where new windows appear, for example) is the screen containing the mouse pointer. When disabled, the active Xinerama screen is the screen containing the focused window.</string>
</property>
<property name="text">
<string>Active screen follows &amp;mouse</string>

View file

@ -137,7 +137,7 @@
</entry>
<entry key="ActiveMouseScreen" type="Bool">
<default code="true">focusPolicy() != KWin::Options::ClickToFocus</default>
<default>true</default>
</entry>
<entry key="FocusStealingPreventionLevel" type="Int">

View file

@ -137,11 +137,6 @@ void KFocusConfig::focusPolicyChanged()
// the delayed focus related widgets are: delayFocus
m_ui->delayFocusOnLabel->setEnabled(focusPolicy != CLICK_TO_FOCUS);
m_ui->kcfg_DelayFocusInterval->setEnabled(focusPolicy != CLICK_TO_FOCUS);
// on by default for non click to focus policies
if (m_settings->activeMouseScreen() == m_settings->defaultActiveMouseScreenValue()) {
m_ui->kcfg_ActiveMouseScreen->setChecked(focusPolicy != CLICK_TO_FOCUS && focusPolicy != CLICK_TO_FOCUS_MOUSE_PRECEDENT);
}
}
void KFocusConfig::showEvent(QShowEvent *ev)

View file

@ -103,7 +103,7 @@
<default>false</default>
</entry>
<entry name="ActiveMouseScreen" type="Bool">
<default code="true">focusPolicy() != Options::ClickToFocus</default>
<default>true</default>
</entry>
<entry name="RollOverDesktops" type="Bool">
<default>true</default>