From e59867dd921851ad28e609f6342d0550986a0c7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Sat, 16 Mar 2013 11:34:14 +0100 Subject: [PATCH] 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. --- effects/blur/blur.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/effects/blur/blur.cpp b/effects/blur/blur.cpp index 3b10b9bc42..1873c69c81 100644 --- a/effects/blur/blur.cpp +++ b/effects/blur/blur.cpp @@ -61,10 +61,15 @@ BlurEffect::BlurEffect() } else { XDeleteProperty(display(), rootWindow(), net_wm_blur_region); } + 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(propertyNotify(KWin::EffectWindow*,long)), this, SLOT(slotPropertyNotify(KWin::EffectWindow*,long))); connect(effects, SIGNAL(screenGeometryChanged(QSize)), this, SLOT(slotScreenGeometryChanged())); + + // Fetch the blur regions for all windows + foreach (EffectWindow *window, effects->stackingOrder()) + updateBlurRegion(window); } BlurEffect::~BlurEffect()