summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-11-25 14:52:47 +0000
committerVaxry <vaxry@vaxry.net>2023-11-25 14:52:52 +0000
commit3fe6162af1904f15fc5526c179c06a48265bdbff (patch)
tree778c059764dde7b39095ed93091cfddc0bf1ebf5 /src/render/OpenGL.cpp
parent2ce4b94a22242ae77f6a2899d389dcb56d0e5fa8 (diff)
opengl: fix xray modes in introspection checks for ls
fixes #3953
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index 486531b7..a20c94ca 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -130,8 +130,15 @@ bool CHyprOpenGLImpl::passRequiresIntrospection(CMonitor* pMonitor) {
if (pMonitor->solitaryClient)
return false;
+ for (auto& ls : pMonitor->m_aLayerSurfaceLayers[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY]) {
+ const auto XRAYMODE = ls->xray == -1 ? *PXRAY : ls->xray;
+ if (ls->forceBlur && !XRAYMODE)
+ return true;
+ }
+
for (auto& ls : pMonitor->m_aLayerSurfaceLayers[ZWLR_LAYER_SHELL_V1_LAYER_TOP]) {
- if (ls->forceBlur && !ls->xray)
+ const auto XRAYMODE = ls->xray == -1 ? *PXRAY : ls->xray;
+ if (ls->forceBlur && !XRAYMODE)
return true;
}