plugins/blur: limit app-requested blur to the app surface
It does not make any sense that blur would be extended to the decoration when the decoration doesn't request it BUG: 487538
This commit is contained in:
parent
bbfffec6d6
commit
1fbb742698
1 changed files with 5 additions and 5 deletions
|
@ -401,12 +401,12 @@ QRegion BlurEffect::blurRegion(EffectWindow *w) const
|
|||
if (content->isEmpty()) {
|
||||
// An empty region means that the blur effect should be enabled
|
||||
// for the whole window.
|
||||
region = w->rect().toRect();
|
||||
region = w->contentsRect().toRect();
|
||||
} else {
|
||||
if (frame.has_value()) {
|
||||
region = frame.value();
|
||||
}
|
||||
region += content->translated(w->contentsRect().topLeft().toPoint()) & w->decorationInnerRect().toRect();
|
||||
region = content->translated(w->contentsRect().topLeft().toPoint()) & w->decorationInnerRect().toRect();
|
||||
}
|
||||
if (frame.has_value()) {
|
||||
region += frame.value();
|
||||
}
|
||||
} else if (frame.has_value()) {
|
||||
region = frame.value();
|
||||
|
|
Loading…
Reference in a new issue