renderer: make sure lastWindow has correct ws in renderWorkspaceWindows

fixes #3916 fixes #3888
This commit is contained in:
Vaxry 2023-11-22 23:43:46 +00:00
parent 45ebe0df8f
commit e55c5a916a

View file

@ -260,7 +260,7 @@ void CHyprRenderer::renderWorkspaceWindows(CMonitor* pMonitor, CWorkspace* pWork
continue; continue;
// render active window after all others of this pass // 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(); lastWindow = w.get();
continue; continue;
} }