From d3da912d7241c5b43af079d44b4a811da403d831 Mon Sep 17 00:00:00 2001 From: Mikhail Zolotukhin Date: Tue, 3 Dec 2019 12:10:00 -0700 Subject: [PATCH] Notify about window decorations buttons order changes Summary: This makes it possible to detect these changes via KConfigWatcher. This is needed for D25670 Reviewers: #kwin, ngraham, davidedmundson Reviewed By: #kwin, ngraham, davidedmundson Subscribers: ngraham, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D25695 --- kcmkwin/kwindecoration/kcm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kcmkwin/kwindecoration/kcm.cpp b/kcmkwin/kwindecoration/kcm.cpp index 3a68c866e9..b83bcefb05 100644 --- a/kcmkwin/kwindecoration/kcm.cpp +++ b/kcmkwin/kwindecoration/kcm.cpp @@ -202,8 +202,8 @@ void KCMKWinDecoration::save() config.writeEntry(s_configShowToolTips, m_currentSettings.showToolTips); config.writeEntry(s_configBorderSize, Utils::borderSizeToString(m_currentSettings.borderSize)); config.writeEntry(s_configBorderSizeAuto, m_currentSettings.borderSizeAuto); - config.writeEntry(s_configDecoButtonsOnLeft, Utils::buttonsToString(m_currentSettings.buttonsOnLeft)); - config.writeEntry(s_configDecoButtonsOnRight, Utils::buttonsToString(m_currentSettings.buttonsOnRight)); + config.writeEntry(s_configDecoButtonsOnLeft, Utils::buttonsToString(m_currentSettings.buttonsOnLeft), KConfigGroup::Notify); + config.writeEntry(s_configDecoButtonsOnRight, Utils::buttonsToString(m_currentSettings.buttonsOnRight), KConfigGroup::Notify); config.sync(); m_savedSettings = m_currentSettings;