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:
parent
fb2fbed035
commit
1ea54ef44f
1 changed files with 3 additions and 5 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue