Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
8af45aa9
Commit
8af45aa9
authored
Apr 22, 2021
by
Cyril Rossi
Browse files
KCM KWinTabbox activate/deactivate desktop effects. Fix default value for highlightWindowsEnabled
parent
5bc3316e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/kcmkwin/kwintabbox/kwinpluginssettings.kcfg
View file @
8af45aa9
...
...
@@ -12,7 +12,7 @@
<default
code=
"true"
>
BuiltInEffects::enabledByDefault(BuiltInEffect::FlipSwitch)
</default>
</entry>
<entry
key=
"highlightwindowEnabled"
type=
"Bool"
>
<default
>
false
</default>
<default
code=
"true"
>
BuiltInEffects::enabledByDefault(BuiltInEffect::HighlightWindow)
</default>
</entry>
</group>
</kcfg>
src/kcmkwin/kwintabbox/main.cpp
View file @
8af45aa9
...
...
@@ -344,16 +344,10 @@ void KWinTabBoxConfig::save()
const
bool
flipSwitchAlternative
=
m_alternativeTabBoxUi
->
showTabBox
()
&&
m_alternativeTabBoxUi
->
effectComboCurrentData
().
toString
()
==
m_flipSwitch
;
// activate effects if not active
if
(
coverSwitch
||
coverSwitchAlternative
)
{
m_data
->
pluginsConfig
()
->
setCoverswitchEnabled
(
true
);
}
if
(
flipSwitch
||
flipSwitchAlternative
)
{
m_data
->
pluginsConfig
()
->
setFlipswitchEnabled
(
true
);
}
if
(
highlightWindows
)
{
m_data
->
pluginsConfig
()
->
setHighlightwindowEnabled
(
true
);
}
// activate effects if they are used otherwise deactivate them.
m_data
->
pluginsConfig
()
->
setCoverswitchEnabled
(
coverSwitch
||
coverSwitchAlternative
);
m_data
->
pluginsConfig
()
->
setFlipswitchEnabled
(
flipSwitch
||
flipSwitchAlternative
);
m_data
->
pluginsConfig
()
->
setHighlightwindowEnabled
(
highlightWindows
);
m_data
->
pluginsConfig
()
->
save
();
m_data
->
coverSwitchConfig
()
->
setTabBox
(
coverSwitch
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment