Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit 4c85e11

Browse files
committed
force-blur: fix blur region for x11 windows with csd on wayland
f0814da fixed it on X11 and broke it on Wayland.
1 parent 8a7014d commit 4c85e11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/blur.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ void BlurEffect::updateBlurRegion(EffectWindow *w)
326326
// On X11, EffectWindow::contentsRect() includes GTK's client-side shadows, while on Wayland, it doesn't.
327327
// The content region is translated by EffectWindow::contentsRect() in BlurEffect::blurRegion, causing the
328328
// blur region to be off on X11. The frame region is not translated, so it is used instead.
329-
const auto isX11WithCSD = !effects->waylandDisplay() && (w->frameGeometry() != w->bufferGeometry());
329+
const auto isX11WithCSD = w->isX11Client() && w->frameGeometry() != w->bufferGeometry();
330330
if (!isX11WithCSD) {
331331
content = w->contentsRect().translated(-w->contentsRect().topLeft()).toRect();
332332
}

0 commit comments

Comments
 (0)