Fix Background Contrast during Present Windows

We already set WindowForceBlurRole for docks during Present Windows. This also sets
WindowForceBackgroundContrastRole.

REVIEW: 122904
BUG: 341926
remotes/origin/Plasma/5.3
Mika Allan Rauhala 11 years ago committed by Martin Gräßlin
parent c5693270db
commit e1e437135b
  1. 3
      effects/presentwindows/presentwindows.cpp

@ -212,6 +212,7 @@ void PresentWindowsEffect::postPaintScreen()
foreach (EffectWindow * w, effects->stackingOrder()) {
if (w->isDock()) {
w->setData(WindowForceBlurRole, QVariant(false));
w->setData(WindowForceBackgroundContrastRole, QVariant(false));
}
}
effects->setActiveFullScreenEffect(NULL);
@ -446,6 +447,7 @@ void PresentWindowsEffect::slotWindowAdded(EffectWindow *w)
winData->highlight = 1.0;
m_closeWindow = w;
w->setData(WindowForceBlurRole, QVariant(true));
w->setData(WindowForceBackgroundContrastRole, QVariant(true));
}
}
@ -1493,6 +1495,7 @@ void PresentWindowsEffect::setActive(bool active)
foreach (EffectWindow * w, effects->stackingOrder()) {
if (w->isDock()) {
w->setData(WindowForceBlurRole, QVariant(true));
w->setData(WindowForceBackgroundContrastRole, QVariant(true));
}
}
} else {

Loading…
Cancel
Save