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:
Xaver Hugl 2024-08-02 18:49:53 +02:00
parent bbfffec6d6
commit 1fbb742698

View file

@ -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();