summaryrefslogtreecommitdiff
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-02-23 21:09:41 +0000
committerVaxry <vaxry@vaxry.net>2024-02-23 21:09:47 +0000
commitca59bd57393a386c9c6c9707ef6a9de4a9235fe1 (patch)
tree8dca3c75c1ce343792a35f589ad27b33b2203d7e /src/render/OpenGL.cpp
parentf389f77015ebeee30a2527b8eb7488879dd626e0 (diff)
opengl: check bottom/bg layers for required introspection
ref #4818
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp11
1 files changed, 11 insertions, 0 deletions
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)