summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index 1cb5bae9..1e57e6a6 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -558,8 +558,10 @@ void CHyprOpenGLImpl::renderTextureWithBlur(const CTexture& tex, wlr_box* pBox,
pixman_region32_copy(&inverseOpaque, &damage);
}
- if (!pixman_region32_not_empty(&damage))
- return; // if its empty, reject.
+ if (!pixman_region32_not_empty(&inverseOpaque)) {
+ renderTexture(tex, pBox, a, round, false, border); // reject blurring a fully opaque window
+ return;
+ }
// blur the main FB, it will be rendered onto the mirror
const auto POUTFB = blurMainFramebufferWithDamage(a, pBox, &inverseOpaque);