Commit 5ad5e4eb authored by Martin Flöser's avatar Martin Flöser
Browse files

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
parent 65ab2fde
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment