Skip to content

Commit

Permalink
Merge pull request #93 from Username404-59/develop
Browse files Browse the repository at this point in the history
Fix for kwin's master branch
  • Loading branch information
taj-ny authored Aug 30, 2024
2 parents f4590a6 + bee7231 commit acde198
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blur.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ QRegion BlurEffect::decorationBlurRegion(const EffectWindow *w) const
return QRegion();
}

QRegion decorationRegion = QRegion(w->decoration()->rect()) - w->decorationInnerRect().toRect();
QRegion decorationRegion = QRegion(w->decoration()->rect()) - w->contentsRect().toRect();
//! we return only blurred regions that belong to decoration region
return decorationRegion.intersected(w->decoration()->blurRegion());
}
Expand All @@ -446,7 +446,7 @@ QRegion BlurEffect::blurRegion(EffectWindow *w) const
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->contentsRect().toRect();
}
} else if (frame.has_value()) {
region = frame.value();
Expand Down

0 comments on commit acde198

Please sign in to comment.