diff options
| author | Vaxry <vaxry@vaxry.net> | 2023-12-05 00:42:58 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2023-12-05 00:43:09 +0000 |
| commit | c6804ccaab1cdd0de5026907e3537ad5362861a9 (patch) | |
| tree | 9288950b57b58809d904d55641bd1290de8ea05d /src/render/OpenGL.cpp | |
| parent | aa46aaed04f089b849c45a077e81e8b562be23df (diff) | |
opengl: fixup blur dirty repaint conditions with solitary
fixes #4025
Diffstat (limited to 'src/render/OpenGL.cpp')
| -rw-r--r-- | src/render/OpenGL.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 2c9151e5..fde04c5f 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -1207,13 +1207,6 @@ CFramebuffer* CHyprOpenGLImpl::blurMainFramebufferWithDamage(float a, CRegion* o } void CHyprOpenGLImpl::markBlurDirtyForMonitor(CMonitor* pMonitor) { - const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(pMonitor->activeWorkspace); - const auto PFULLWINDOW = g_pCompositor->getFullscreenWindowOnWorkspace(pMonitor->activeWorkspace); - - if (PWORKSPACE->m_bHasFullscreenWindow && PWORKSPACE->m_efFullscreenMode == FULLSCREEN_FULL && PFULLWINDOW && !PFULLWINDOW->m_vRealSize.isBeingAnimated() && - PFULLWINDOW->opaque()) - return; - m_mMonitorRenderResources[pMonitor].blurFBDirty = true; } @@ -1225,6 +1218,10 @@ void CHyprOpenGLImpl::preRender(CMonitor* pMonitor) { if (!*PBLURNEWOPTIMIZE || !m_mMonitorRenderResources[pMonitor].blurFBDirty || !*PBLUR) return; + // ignore if solitary present, nothing to blur + if (pMonitor->solitaryClient) + return; + // check if we need to update the blur fb // if there are no windows that would benefit from it, // we will ignore that the blur FB is dirty. |
