Commit 405469aa authored by Kai Uwe Broulik's avatar Kai Uwe Broulik Committed by Kai Uwe Broulik
Browse files

options: Set placement default in kcfg



This ensures the value can still be overridden explicitly in kwinrc.

Signed-off-by: default avatarVictoria Fischer <victoria.fischer@mbition.io>
parent 3ca49ee6
Pipeline #219918 failed with stage
in 18 minutes and 59 seconds
......@@ -3,6 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<include>config-kwin.h</include>
<kcfgfile arg="true" />
<group name="MouseBindings">
<entry name="CommandTitlebarWheel" type="String">
......@@ -124,7 +125,13 @@
<choice name="OnMainWindow"/>
<choice name="Maximizing"/>
</choices>
<default>Placement::Centered</default>
<default type="code">[] {
#if KWIN_BUILD_DECORATIONS
return Placement::Centered;
#else
return Placement::Maximizing;
#endif
}()</default>
</entry>
<entry name="AutoRaise" type="Bool">
<default>false</default>
......
......@@ -761,13 +761,7 @@ void Options::syncFromKcfgc()
setFocusStealingPreventionLevel(m_settings->focusStealingPreventionLevel());
setXwaylandCrashPolicy(m_settings->xwaylandCrashPolicy());
setXwaylandMaxCrashCount(m_settings->xwaylandMaxCrashCount());
#if KWIN_BUILD_DECORATIONS
setPlacement(m_settings->placement());
#else
setPlacement(Placement::Maximizing);
#endif
setAutoRaise(m_settings->autoRaise());
setAutoRaiseInterval(m_settings->autoRaiseInterval());
setDelayFocusInterval(m_settings->delayFocusInterval());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment