From 49b63d052fdf5e213c7161056151057f2ac22091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Wed, 7 Dec 2011 14:44:30 +0100 Subject: [PATCH] sync highlight_windows effect to tabbox usage BUG: 270498 REVIEW: 103349 --- kcmkwin/kwintabbox/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kcmkwin/kwintabbox/main.cpp b/kcmkwin/kwintabbox/main.cpp index de3566e414..53b3144a67 100644 --- a/kcmkwin/kwintabbox/main.cpp +++ b/kcmkwin/kwintabbox/main.cpp @@ -284,6 +284,8 @@ void KWinTabBoxConfig::save() saveConfig(config, m_tabBoxAlternativeConfig); // effects + bool highlightWindows = m_primaryTabBoxUi->highlightWindowCheck->isChecked() || + m_alternativeTabBoxUi->highlightWindowCheck->isChecked(); bool presentWindowSwitching = false; bool coverSwitch = false; bool flipSwitch = false; @@ -316,6 +318,7 @@ void KWinTabBoxConfig::save() default: break; // nothing } + // activate effects if not active KConfigGroup effectconfig(m_config, "Plugins"); if (presentWindowSwitching || presentWindowSwitchingAlternative) @@ -324,6 +327,8 @@ void KWinTabBoxConfig::save() effectconfig.writeEntry("kwin4_effect_coverswitchEnabled", true); if (flipSwitch || flipSwitchAlternative) effectconfig.writeEntry("kwin4_effect_flipswitchEnabled", true); + if (highlightWindows) + effectconfig.writeEntry("kwin4_effect_highlightwindowEnabled", true); effectconfig.sync(); KConfigGroup presentwindowsconfig(m_config, "Effect-PresentWindows"); presentwindowsconfig.writeEntry("TabBox", presentWindowSwitching);