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:
parent
0286540c29
commit
e0c2a177ea
1 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue