From e55c5a916ab942e641339471bc80b6d2efbc2044 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 22 Nov 2023 23:43:46 +0000 Subject: [PATCH] renderer: make sure lastWindow has correct ws in renderWorkspaceWindows fixes #3916 fixes #3888 --- src/render/Renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 3a5fa0b6..43616868 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -260,7 +260,7 @@ void CHyprRenderer::renderWorkspaceWindows(CMonitor* pMonitor, CWorkspace* pWork continue; // render active window after all others of this pass - if (w.get() == g_pCompositor->m_pLastWindow) { + if (w.get() == g_pCompositor->m_pLastWindow && w->m_iWorkspaceID == pWorkspace->m_iID) { lastWindow = w.get(); continue; }