aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
authorMightyPlaza <[email protected]>2024-07-12 21:05:19 +0000
committerGitHub <[email protected]>2024-07-12 23:05:19 +0200
commitf85c6416c6f5e56c75178ecb24c11e346069197d (patch)
tree759925fa447b654d7859bfda7fc17c40e79b1a0e /src/render/OpenGL.cpp
parente728e56cbc6af0a9be1276b2cf8e019a894016e7 (diff)
downloadHyprland-f85c6416c6f5e56c75178ecb24c11e346069197d.tar.gz
Hyprland-f85c6416c6f5e56c75178ecb24c11e346069197d.zip
renderer: fix a few xray regressions (#6855)
* fix xray unset modified: src/render/OpenGL.cpp * fix xwray unset modified: src/render/OpenGL.cpp
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index 2b603868..2556fafc 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -434,7 +434,7 @@ bool CHyprOpenGLImpl::passRequiresIntrospection(CMonitor* pMonitor) {
if (!w->m_bIsFloating && *POPTIM && !w->onSpecialWorkspace())
continue;
- if (w->m_sWindowData.noBlur.valueOrDefault() || w->m_sWindowData.xray.valueOrDefault() == true)
+ if (w->m_sWindowData.noBlur.valueOrDefault() || !w->m_sWindowData.xray.hasValue() || w->m_sWindowData.xray.valueOrDefault())
continue;
if (w->opaque())
@@ -1717,7 +1717,7 @@ bool CHyprOpenGLImpl::shouldUseNewBlurOptimizations(PHLLS pLayer, PHLWINDOW pWin
if (!m_RenderData.pCurrentMonData->blurFB.m_cTex->m_iTexID)
return false;
- if (pWindow && !pWindow->m_sWindowData.xray.valueOrDefault())
+ if (pWindow && pWindow->m_sWindowData.xray.hasValue() && !pWindow->m_sWindowData.xray.valueOrDefault())
return false;
if (pLayer && pLayer->xray == 0)