Fix Background Contrast during Present Windows

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

REVIEW: 122904
BUG: 341926
icc-effect-5.14.5
Mika Allan Rauhala 2015-04-01 16:48:10 +02:00 committed by Martin Gräßlin
parent c5693270db
commit e1e437135b
1 changed files with 3 additions and 0 deletions

View File

@ -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 {