From e0c2a177eac51674bafe40d21b7d4a8b62cd7f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 10 Aug 2012 10:01:23 +0200 Subject: [PATCH] Move blur behind setting for dashboard to windowAdded slot We always want to have blur behind the Dashboard window not just after the activitation. BUG: 304564 FIXED-IN: 4.9.1 REVIEW: 105962 --- effects/dashboard/dashboard.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/effects/dashboard/dashboard.cpp b/effects/dashboard/dashboard.cpp index f5832f4b99..5c5d25a809 100644 --- a/effects/dashboard/dashboard.cpp +++ b/effects/dashboard/dashboard.cpp @@ -158,11 +158,6 @@ void DashboardEffect::slotWindowActivated(EffectWindow *w) transformWindow = true; window = w; - if (blur) { - w->setData(WindowBlurBehindRole, w->geometry()); - w->setData(WindowForceBlurRole, QVariant(true)); - } - effects->addRepaintFull(); } else { if (transformWindow) { @@ -177,6 +172,10 @@ void DashboardEffect::slotWindowAdded(EffectWindow* w) if (isDashboard(w)) { // Tell other windowAdded() effects to ignore this window w->setData(WindowAddedGrabRole, QVariant::fromValue(static_cast(this))); + if (blur) { + w->setData(WindowBlurBehindRole, w->geometry()); + w->setData(WindowForceBlurRole, QVariant(true)); + } activateAnimation = true; deactivateAnimation = false;