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:
Fredrik Höglund 2013-03-16 11:34:14 +01:00
parent c4d450455b
commit e59867dd92

View file

@ -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()