From 1ea54ef44fe8080d9f6e37d4ac4479e3c96814c1 Mon Sep 17 00:00:00 2001 From: Philipp Knechtges Date: Sat, 15 Oct 2011 16:19:19 +0200 Subject: [PATCH] kwin: fixing blur for shaded windows If a window is "rolled" up we should not blur the specific regions. CCBUG: 245388 --- effects/blur/blur.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/effects/blur/blur.cpp b/effects/blur/blur.cpp index 6ca278fdca..c566e342fc 100644 --- a/effects/blur/blur.cpp +++ b/effects/blur/blur.cpp @@ -192,11 +192,9 @@ QRegion BlurEffect::blurRegion(const EffectWindow *w) const if (w->hasDecoration() && effects->decorationSupportsBlurBehind()) { region = w->shape(); region -= w->decorationInnerRect(); - region |= appRegion.translated(w->contentsRect().topLeft()) & - w->contentsRect(); - } else - region = appRegion.translated(w->contentsRect().topLeft()) & - w->contentsRect(); + } + region |= appRegion.translated(w->contentsRect().topLeft()) & + w->decorationInnerRect(); } else { // An empty region means that the blur effect should be enabled // for the whole window.