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;
|
transformWindow = true;
|
||||||
window = w;
|
window = w;
|
||||||
|
|
||||||
if (blur) {
|
|
||||||
w->setData(WindowBlurBehindRole, w->geometry());
|
|
||||||
w->setData(WindowForceBlurRole, QVariant(true));
|
|
||||||
}
|
|
||||||
|
|
||||||
effects->addRepaintFull();
|
effects->addRepaintFull();
|
||||||
} else {
|
} else {
|
||||||
if (transformWindow) {
|
if (transformWindow) {
|
||||||
|
@ -177,6 +172,10 @@ void DashboardEffect::slotWindowAdded(EffectWindow* w)
|
||||||
if (isDashboard(w)) {
|
if (isDashboard(w)) {
|
||||||
// Tell other windowAdded() effects to ignore this window
|
// Tell other windowAdded() effects to ignore this window
|
||||||
w->setData(WindowAddedGrabRole, QVariant::fromValue(static_cast<void*>(this)));
|
w->setData(WindowAddedGrabRole, QVariant::fromValue(static_cast<void*>(this)));
|
||||||
|
if (blur) {
|
||||||
|
w->setData(WindowBlurBehindRole, w->geometry());
|
||||||
|
w->setData(WindowForceBlurRole, QVariant(true));
|
||||||
|
}
|
||||||
|
|
||||||
activateAnimation = true;
|
activateAnimation = true;
|
||||||
deactivateAnimation = false;
|
deactivateAnimation = false;
|
||||||
|
|
Loading…
Reference in a new issue