[kcmkwin/screenedges] Drop check whether Compositing is enabled
Reading the configured value might be wrong, so it's better to not check at all. REVIEW: 121312icc-effect-5.14.5
parent
d6014927e7
commit
a2393a5c84
|
@ -392,10 +392,7 @@ void KWinScreenEdgesConfig::monitorDefaults()
|
||||||
void KWinScreenEdgesConfig::monitorShowEvent()
|
void KWinScreenEdgesConfig::monitorShowEvent()
|
||||||
{
|
{
|
||||||
// Check if they are enabled
|
// Check if they are enabled
|
||||||
KConfigGroup config(m_config, "Compositing");
|
KConfigGroup config(m_config, "Plugins");
|
||||||
if (config.readEntry("Enabled", true)) {
|
|
||||||
// Compositing enabled
|
|
||||||
config = KConfigGroup(m_config, "Plugins");
|
|
||||||
|
|
||||||
// Present Windows
|
// Present Windows
|
||||||
bool enabled = effectEnabled(BuiltInEffect::PresentWindows, config);
|
bool enabled = effectEnabled(BuiltInEffect::PresentWindows, config);
|
||||||
|
@ -411,14 +408,6 @@ void KWinScreenEdgesConfig::monitorShowEvent()
|
||||||
monitorItemSetEnabled(int(Cube), enabled);
|
monitorItemSetEnabled(int(Cube), enabled);
|
||||||
monitorItemSetEnabled(int(Cylinder), enabled);
|
monitorItemSetEnabled(int(Cylinder), enabled);
|
||||||
monitorItemSetEnabled(int(Sphere), enabled);
|
monitorItemSetEnabled(int(Sphere), enabled);
|
||||||
} else { // Compositing disabled
|
|
||||||
monitorItemSetEnabled(int(PresentWindowsCurrent), false);
|
|
||||||
monitorItemSetEnabled(int(PresentWindowsAll), false);
|
|
||||||
monitorItemSetEnabled(int(DesktopGrid), false);
|
|
||||||
monitorItemSetEnabled(int(Cube), false);
|
|
||||||
monitorItemSetEnabled(int(Cylinder), false);
|
|
||||||
monitorItemSetEnabled(int(Sphere), false);
|
|
||||||
}
|
|
||||||
// tabbox, depends on reasonable focus policy.
|
// tabbox, depends on reasonable focus policy.
|
||||||
KConfigGroup config2(m_config, "Windows");
|
KConfigGroup config2(m_config, "Windows");
|
||||||
QString focusPolicy = config2.readEntry("FocusPolicy", QString());
|
QString focusPolicy = config2.readEntry("FocusPolicy", QString());
|
||||||
|
|
Loading…
Reference in New Issue