kwin/kcmkwin/kwindecoration/kwindecorationsettings.kcfg
David Edmundson e0df390dbc [kcms/kwindecoration] Fix saving of window decoration plugin
Summary:
In the KCFG autogenerated code we check for HAVE_BREEZE_DECO without
including the relevant file. This always fails, and so we save the
default plugin name/library as org.kde.kwin.aurorae

This doesn't match kwin's concept of the default and so we just fail to
load it.

BUG: 416525

Test Plan:
Reproduced
Saved a config

Reviewers: #kwin, ngraham

Reviewed By: ngraham

Subscribers: ngraham, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D26814
2020-01-21 18:41:59 +00:00

54 lines
2.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
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 name="kwinrc" />
<group name="org.kde.kdecoration2">
<entry name="pluginName" key="library" type="String">
<label>Plugin name</label>
<code>#if HAVE_BREEZE_DECO
const QString s_defaultPlugin { QStringLiteral(BREEZE_KDECORATION_PLUGIN_ID) };
#else
const QString s_defaultPlugin { QStringLiteral("org.kde.kwin.aurorae") };
#endif
</code>
<default code="true">s_defaultPlugin</default>
</entry>
<entry name="theme" key="theme" type="String">
<label>Theme name</label>
<code>#if HAVE_BREEZE_DECO
const QString s_defaultTheme { QStringLiteral("Breeze") };
#else
const QString s_defaultTheme { QStringLiteral("kwin4_decoration_qml_plastik") };
#endif
</code>
<default code="true">s_defaultTheme</default>
</entry>
<entry name="borderSize" key="BorderSize" type="String">
<label>Window border size</label>
<default>Normal</default>
</entry>
<entry name="borderSizeAuto" key="BorderSizeAuto" type="Bool">
<label>Use theme's default window border size</label>
<default>true</default>
</entry>
<entry name="closeOnDoubleClickOnMenu" key="CloseOnDoubleClickOnMenu" type="Bool">
<label>Close windows by double clicking the menu button</label>
<default>false</default>
</entry>
<entry name="showToolTips" key="ShowToolTips" type="Bool">
<label>Show titlebar button tooltips</label>
<default>true</default>
</entry>
<entry name="buttonsOnLeft" key="ButtonsOnLeft" type="String">
<label>Titlebar left buttons</label>
<default>MS</default>
</entry>
<entry name="buttonsOnRight" key="ButtonsOnRight" type="String">
<label>Titlebar right buttons</label>
<default>HIAX</default>
</entry>
</group>
</kcfg>