From e1e437135b7edd76c72fe653e44ca1d549685517 Mon Sep 17 00:00:00 2001 From: Mika Allan Rauhala Date: Wed, 1 Apr 2015 16:48:10 +0200 Subject: [PATCH] Fix Background Contrast during Present Windows We already set WindowForceBlurRole for docks during Present Windows. This also sets WindowForceBackgroundContrastRole. REVIEW: 122904 BUG: 341926 --- effects/presentwindows/presentwindows.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index 7a62ec0191..acc576cc8c 100755 --- a/effects/presentwindows/presentwindows.cpp +++ b/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 {