kwin/blur: Fetch all the blur regions in the ctor
Otherwise the content below windows that were created before the effect was instantiated won't be blurred.
This commit is contained in:
parent
c4d450455b
commit
e59867dd92
1 changed files with 5 additions and 0 deletions
|
@ -61,10 +61,15 @@ BlurEffect::BlurEffect()
|
||||||
} else {
|
} else {
|
||||||
XDeleteProperty(display(), rootWindow(), net_wm_blur_region);
|
XDeleteProperty(display(), rootWindow(), net_wm_blur_region);
|
||||||
}
|
}
|
||||||
|
|
||||||
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
connect(effects, SIGNAL(windowAdded(KWin::EffectWindow*)), this, SLOT(slotWindowAdded(KWin::EffectWindow*)));
|
||||||
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
connect(effects, SIGNAL(windowDeleted(KWin::EffectWindow*)), this, SLOT(slotWindowDeleted(KWin::EffectWindow*)));
|
||||||
connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long)));
|
connect(effects, SIGNAL(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long)));
|
||||||
connect(effects, SIGNAL(screenGeometryChanged(QSize)), this, SLOT(slotScreenGeometryChanged()));
|
connect(effects, SIGNAL(screenGeometryChanged(QSize)), this, SLOT(slotScreenGeometryChanged()));
|
||||||
|
|
||||||
|
// Fetch the blur regions for all windows
|
||||||
|
foreach (EffectWindow *window, effects->stackingOrder())
|
||||||
|
updateBlurRegion(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
BlurEffect::~BlurEffect()
|
BlurEffect::~BlurEffect()
|
||||||
|
|
Loading…
Reference in a new issue