From b240704bee1d04eacc27654ea875cf6f15033c7c Mon Sep 17 00:00:00 2001 From: vaxerski Date: Tue, 9 Jan 2024 20:42:07 +0100 Subject: [PATCH] renderer: allow rendering multiple fullscreen windows in third fs pass something might be fading out, sliding out, etc. We handle it before, why not use it? fixes #4076 --- src/render/Renderer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 22613b4f..b7776ee6 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -290,11 +290,14 @@ void CHyprRenderer::renderWorkspaceWindowsFullscreen(CMonitor* pMonitor, CWorksp continue; } - if (w->m_iWorkspaceID != pMonitor->activeWorkspace || !w->m_bIsFullscreen) + if (!w->m_bIsFullscreen) continue; renderWindow(w.get(), pMonitor, time, pWorkspace->m_efFullscreenMode != FULLSCREEN_FULL, RENDER_PASS_ALL); + if (w->m_iWorkspaceID != pWorkspace->m_iID) + continue; + pWorkspaceWindow = w.get(); }