From 6d35d642ea40d365ca81e5e0c28429fc5a9b1b8f Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 28 Jul 2022 15:56:55 +0200 Subject: [PATCH] fix fullscreen workspace slide anims --- 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 87d66b6c..bb31d307 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -115,8 +115,12 @@ void CHyprRenderer::renderWorkspaceWithFullscreenWindow(CMonitor* pMonitor, CWor CWindow* pWorkspaceWindow = nullptr; for (auto& w : g_pCompositor->m_vWindows) { - if (w->m_iWorkspaceID != pWorkspace->m_iID || !w->m_bIsFullscreen) - continue; + const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(w->m_iWorkspaceID); + + if (w->m_iWorkspaceID != pWorkspace->m_iID || !w->m_bIsFullscreen){ + if (!(PWORKSPACE && (PWORKSPACE->m_vRenderOffset.isBeingAnimated() || PWORKSPACE->m_fAlpha.isBeingAnimated()))) + continue; + } // found it! renderWindow(w.get(), pMonitor, time, pWorkspace->m_efFullscreenMode != FULLSCREEN_FULL, RENDER_PASS_ALL);