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);
|
saveConfig(config, m_tabBoxAlternativeConfig);
|
||||||
|
|
||||||
// effects
|
// effects
|
||||||
|
bool highlightWindows = m_primaryTabBoxUi->highlightWindowCheck->isChecked() ||
|
||||||
|
m_alternativeTabBoxUi->highlightWindowCheck->isChecked();
|
||||||
bool presentWindowSwitching = false;
|
bool presentWindowSwitching = false;
|
||||||
bool coverSwitch = false;
|
bool coverSwitch = false;
|
||||||
bool flipSwitch = false;
|
bool flipSwitch = false;
|
||||||
|
@ -316,6 +318,7 @@ void KWinTabBoxConfig::save()
|
||||||
default:
|
default:
|
||||||
break; // nothing
|
break; // nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
// activate effects if not active
|
// activate effects if not active
|
||||||
KConfigGroup effectconfig(m_config, "Plugins");
|
KConfigGroup effectconfig(m_config, "Plugins");
|
||||||
if (presentWindowSwitching || presentWindowSwitchingAlternative)
|
if (presentWindowSwitching || presentWindowSwitchingAlternative)
|
||||||
|
@ -324,6 +327,8 @@ void KWinTabBoxConfig::save()
|
||||||
effectconfig.writeEntry("kwin4_effect_coverswitchEnabled", true);
|
effectconfig.writeEntry("kwin4_effect_coverswitchEnabled", true);
|
||||||
if (flipSwitch || flipSwitchAlternative)
|
if (flipSwitch || flipSwitchAlternative)
|
||||||
effectconfig.writeEntry("kwin4_effect_flipswitchEnabled", true);
|
effectconfig.writeEntry("kwin4_effect_flipswitchEnabled", true);
|
||||||
|
if (highlightWindows)
|
||||||
|
effectconfig.writeEntry("kwin4_effect_highlightwindowEnabled", true);
|
||||||
effectconfig.sync();
|
effectconfig.sync();
|
||||||
KConfigGroup presentwindowsconfig(m_config, "Effect-PresentWindows");
|
KConfigGroup presentwindowsconfig(m_config, "Effect-PresentWindows");
|
||||||
presentwindowsconfig.writeEntry("TabBox", presentWindowSwitching);
|
presentwindowsconfig.writeEntry("TabBox", presentWindowSwitching);
|
||||||
|
|
Loading…
Reference in a new issue