sync highlight_windows effect to tabbox usage

BUG: 270498
REVIEW: 103349
This commit is contained in:
Thomas Lübking 2011-12-07 14:44:30 +01:00
parent 3065e6afce
commit 49b63d052f

View file

@ -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);