Fix Background Contrast during Present Windows
We already set WindowForceBlurRole for docks during Present Windows. This also sets WindowForceBackgroundContrastRole. REVIEW: 122904 BUG: 341926
This commit is contained in:
parent
c5693270db
commit
e1e437135b
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue