renderer: dont render fullscreen special on wrong monitor (#5249)

This commit is contained in:
thejch 2024-03-24 18:41:56 -07:00 committed by GitHub
parent 89543e8e3c
commit 8001b96bb5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -328,7 +328,8 @@ void CHyprRenderer::renderWorkspaceWindowsFullscreen(CMonitor* pMonitor, CWorksp
if (w->m_iMonitorID == pWorkspace->m_iMonitorID && pWorkspace->m_bIsSpecialWorkspace != g_pCompositor->isWorkspaceSpecial(w->m_iWorkspaceID))
continue;
renderWindow(w.get(), pMonitor, time, pWorkspace->m_efFullscreenMode != FULLSCREEN_FULL, RENDER_PASS_ALL);
if (shouldRenderWindow(w.get(), pMonitor, pWorkspace))
renderWindow(w.get(), pMonitor, time, pWorkspace->m_efFullscreenMode != FULLSCREEN_FULL, RENDER_PASS_ALL);
if (w->m_iWorkspaceID != pWorkspace->m_iID)
continue;