sync highlight_windows effect to tabbox usage
BUG: 270498 REVIEW: 103349
This commit is contained in:
parent
3065e6afce
commit
49b63d052f
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue