From 02c5c93d86de12fb344f8abd7778b75862cff437 Mon Sep 17 00:00:00 2001 From: taj-ny <79316397+taj-ny@users.noreply.github.com> Date: Fri, 20 Dec 2024 23:42:23 +0100 Subject: [PATCH] force-blur: fix blur region for x11 windows with csd on wayland f0814dad41ea92234418d3947b91348933f4f696 fixed it on X11 and broke it on Wayland. --- src/blur.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blur.cpp b/src/blur.cpp index b0a93b588..76ce6902d 100644 --- a/src/blur.cpp +++ b/src/blur.cpp @@ -295,7 +295,7 @@ void BlurEffect::updateBlurRegion(EffectWindow *w, bool geometryChanged) // On X11, EffectWindow::contentsRect() includes GTK's client-side shadows, while on Wayland, it doesn't. // The content region is translated by EffectWindow::contentsRect() in BlurEffect::blurRegion, causing the // blur region to be off on X11. The frame region is not translated, so it is used instead. - const auto isX11WithCSD = !effects->waylandDisplay() && (w->frameGeometry() != w->bufferGeometry()); + const auto isX11WithCSD = w->isX11Client() && w->frameGeometry() != w->bufferGeometry(); if (!isX11WithCSD) { content = w->contentsRect().translated(-w->contentsRect().topLeft()).toRect(); }