renderer: minor fixup to window rendering logic (#8359)

Don't render animating windows out of their monitor when they are not moving workspaces
This commit is contained in:
dawsers 2024-11-07 00:30:17 +01:00 committed by GitHub
parent 0ec128e5ed
commit 2ec2b3bfb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -355,7 +355,7 @@ bool CHyprRenderer::shouldRenderWindow(PHLWINDOW pWindow, PHLMONITOR pMonitor) {
windowBox.translate(pWindow->m_vFloatingOffset);
const CBox monitorBox = {pMonitor->vecPosition, pMonitor->vecSize};
if (!windowBox.intersection(monitorBox).empty())
if (!windowBox.intersection(monitorBox).empty() && (pWindow->workspaceID() == pMonitor->activeWorkspaceID() || pWindow->m_iMonitorMovedFrom != -1))
return true;
}