Skip to content

Commit

Permalink
blur/force-blur: convert window geometry to QRect after translating
Browse files Browse the repository at this point in the history
fixes #95
  • Loading branch information
taj-ny committed Aug 8, 2024
1 parent 1bc7444 commit 5e3884d
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 @@ -277,9 +277,9 @@ void BlurEffect::updateBlurRegion(EffectWindow *w, bool geometryChanged)

// Don't override blur region for menus that already have one. The window geometry could include shadows.
if (shouldForceBlur(w) && !((isMenu(w) || w->isTooltip()) && (content.has_value() || geometryChanged))) {
content = w->expandedGeometry().toRect().translated(-w->x(), -w->y());
content = w->expandedGeometry().translated(-w->x(), -w->y()).toRect();
if (m_settings.forceBlur.blurDecorations && w->decoration()) {
frame = w->frameGeometry().toRect().translated(-w->x(), -w->y());
frame = w->frameGeometry().translated(-w->x(), -w->y()).toRect();
}
}

Expand Down

0 comments on commit 5e3884d

Please sign in to comment.