From ca59bd57393a386c9c6c9707ef6a9de4a9235fe1 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 23 Feb 2024 21:09:41 +0000 Subject: [PATCH] opengl: check bottom/bg layers for required introspection ref #4818 --- src/render/OpenGL.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 1b820779..94a5d123 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -152,6 +152,17 @@ bool CHyprOpenGLImpl::passRequiresIntrospection(CMonitor* pMonitor) { return true; } + // these two block optimization + for (auto& ls : pMonitor->m_aLayerSurfaceLayers[ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND]) { + if (ls->forceBlur) + return true; + } + + for (auto& ls : pMonitor->m_aLayerSurfaceLayers[ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM]) { + if (ls->forceBlur) + return true; + } + if (*PBLURSPECIAL) { for (auto& ws : g_pCompositor->m_vWorkspaces) { if (!ws->m_bIsSpecialWorkspace || ws->m_iMonitorID != pMonitor->ID)