From 3fe6162af1904f15fc5526c179c06a48265bdbff Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 25 Nov 2023 14:52:47 +0000 Subject: [PATCH] opengl: fix xray modes in introspection checks for ls fixes #3953 --- src/render/OpenGL.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; }