From a09c614c2d2e4317cf6b9bd797784ab2ac94bcf0 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 12 Sep 2022 15:33:20 +0200 Subject: [PATCH] more forceRendering checks in shouldRenderWindow --- src/render/Renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 21c1bdc5..fc02af61 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -72,7 +72,7 @@ bool CHyprRenderer::shouldRenderWindow(CWindow* pWindow, CMonitor* pMonitor) { const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(pWindow->m_iWorkspaceID); if (PWORKSPACE && PWORKSPACE->m_iMonitorID == pMonitor->ID) { - if (PWORKSPACE->m_vRenderOffset.isBeingAnimated() || PWORKSPACE->m_fAlpha.isBeingAnimated()) { + if (PWORKSPACE->m_vRenderOffset.isBeingAnimated() || PWORKSPACE->m_fAlpha.isBeingAnimated() || PWORKSPACE->m_bForceRendering) { return true; } else { if (!(!PWORKSPACE->m_bHasFullscreenWindow || pWindow->m_bIsFullscreen || (pWindow->m_bIsFloating && pWindow->m_bCreatedOverFullscreen))) @@ -102,7 +102,7 @@ bool CHyprRenderer::shouldRenderWindow(CWindow* pWindow) { const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(pWindow->m_iWorkspaceID); - if (pWindow->m_bPinned) + if (pWindow->m_bPinned || PWORKSPACE->m_bForceRendering) return true; if (g_pCompositor->isWorkspaceVisible(pWindow->m_iWorkspaceID))