diff options
author | Vaxry <[email protected]> | 2023-11-25 17:46:50 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2023-11-25 17:46:50 +0000 |
commit | 15b282ee0c8b48724b7d068aa95bb1133fdda2d7 (patch) | |
tree | 8ba1da8a368825fec9e42bbc40a61ffc7e2c3881 | |
parent | 6f733292bf2dae2adf1e7524546e140a93824033 (diff) | |
download | Hyprland-15b282ee0c8b48724b7d068aa95bb1133fdda2d7.tar.gz Hyprland-15b282ee0c8b48724b7d068aa95bb1133fdda2d7.zip |
opengl: fix window introspection check
-rw-r--r-- | src/render/OpenGL.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index a20c94ca..f2028aaf 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -118,8 +118,9 @@ GLuint CHyprOpenGLImpl::compileShader(const GLuint& type, std::string src, bool bool CHyprOpenGLImpl::passRequiresIntrospection(CMonitor* pMonitor) { // passes requiring introspection are the ones that need to render blur. - static auto* const PBLUR = &g_pConfigManager->getConfigValuePtr("decoration:blur:enabled")->intValue; - static auto* const PXRAY = &g_pConfigManager->getConfigValuePtr("decoration:blur:xray")->intValue; + static auto* const PBLUR = &g_pConfigManager->getConfigValuePtr("decoration:blur:enabled")->intValue; + static auto* const PXRAY = &g_pConfigManager->getConfigValuePtr("decoration:blur:xray")->intValue; + static auto* const POPTIM = &g_pConfigManager->getConfigValuePtr("decoration:blur:new_optimizations")->intValue; if (*PBLUR == 0) return false; @@ -146,7 +147,7 @@ bool CHyprOpenGLImpl::passRequiresIntrospection(CMonitor* pMonitor) { return false; for (auto& w : g_pCompositor->m_vWindows) { - if (!w->m_bIsMapped || w->isHidden() || (!w->m_bIsFloating && !g_pCompositor->isWorkspaceSpecial(w->m_iWorkspaceID))) + if (!w->m_bIsMapped || w->isHidden() || (!w->m_bIsFloating && *POPTIM)) continue; if (!g_pHyprRenderer->shouldRenderWindow(w.get())) |