Skip to content

Commit

Permalink
renderer: make sure lastWindow has correct ws in renderWorkspaceWindows
Browse files Browse the repository at this point in the history
fixes #3916 fixes #3888
  • Loading branch information
vaxerski committed Nov 22, 2023
1 parent 45ebe0d commit e55c5a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e55c5a9

Please sign in to comment.