From b6c27a17b057c10530fb9eac6c5096b0c255b7c4 Mon Sep 17 00:00:00 2001 From: Philipp Knechtges Date: Wed, 12 Oct 2011 15:16:46 +0200 Subject: [PATCH] kwin: bugfix blur effect This commit fixes the bug, that the blur texture cache is not marked invalid when the related XProperty changes. BUG: 283818 --- effects/blur/blur.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/effects/blur/blur.cpp b/effects/blur/blur.cpp index 1ce748e93c..fb2380ae19 100644 --- a/effects/blur/blur.cpp +++ b/effects/blur/blur.cpp @@ -130,8 +130,13 @@ void BlurEffect::slotWindowDeleted(EffectWindow *w) void BlurEffect::slotPropertyNotify(EffectWindow *w, long atom) { - if (w && atom == net_wm_blur_region) + if (w && atom == net_wm_blur_region) { updateBlurRegion(w); + if (windows.contains(w)) { + const QRect screen(0, 0, displayWidth(), displayHeight()); + windows[w].damagedRegion = expand(blurRegion(w).translated(w->pos())) & screen; + } + } } bool BlurEffect::enabledByDefault()