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
This commit is contained in:
Martin Gräßlin 2012-08-10 10:01:23 +02:00
parent 0286540c29
commit e0c2a177ea

View file

@ -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<void*>(this)));
if (blur) {
w->setData(WindowBlurBehindRole, w->geometry());
w->setData(WindowForceBlurRole, QVariant(true));
}
activateAnimation = true;
deactivateAnimation = false;