kwin: fixing blur for shaded windows

If a window is "rolled" up we should not blur the specific regions.

CCBUG: 245388
This commit is contained in:
Philipp Knechtges 2011-10-15 16:19:19 +02:00
parent fb2fbed035
commit 1ea54ef44f

View file

@ -192,11 +192,9 @@ QRegion BlurEffect::blurRegion(const EffectWindow *w) const
if (w->hasDecoration() && effects->decorationSupportsBlurBehind()) { if (w->hasDecoration() && effects->decorationSupportsBlurBehind()) {
region = w->shape(); region = w->shape();
region -= w->decorationInnerRect(); region -= w->decorationInnerRect();
}
region |= appRegion.translated(w->contentsRect().topLeft()) & region |= appRegion.translated(w->contentsRect().topLeft()) &
w->contentsRect(); w->decorationInnerRect();
} else
region = appRegion.translated(w->contentsRect().topLeft()) &
w->contentsRect();
} else { } else {
// An empty region means that the blur effect should be enabled // An empty region means that the blur effect should be enabled
// for the whole window. // for the whole window.