From eca6e53bd787437c98cb1e47b27a73e57db84b36 Mon Sep 17 00:00:00 2001 From: Roger Roger Date: Thu, 18 Aug 2022 12:42:21 +0200 Subject: [PATCH] Animate workspaces with fullscreen windows --- src/render/Renderer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 00510735..71440dc7 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -79,8 +79,12 @@ 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_bHasFullscreenWindow || pWindow->m_bIsFullscreen || (pWindow->m_bIsFloating && pWindow->m_bCreatedOverFullscreen))) - return false; + if (PWORKSPACE->m_vRenderOffset.isBeingAnimated() || PWORKSPACE->m_fAlpha.isBeingAnimated()) { + return true; + } else { + if (!(!PWORKSPACE->m_bHasFullscreenWindow || pWindow->m_bIsFullscreen || (pWindow->m_bIsFloating && pWindow->m_bCreatedOverFullscreen))) + return false; + } } if (pWindow->m_iWorkspaceID == pMonitor->activeWorkspace)