mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-15 08:05:57 +01:00
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:
parent
0ec128e5ed
commit
2ec2b3bfb3
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ bool CHyprRenderer::shouldRenderWindow(PHLWINDOW pWindow, PHLMONITOR pMonitor) {
|
||||||
windowBox.translate(pWindow->m_vFloatingOffset);
|
windowBox.translate(pWindow->m_vFloatingOffset);
|
||||||
|
|
||||||
const CBox monitorBox = {pMonitor->vecPosition, pMonitor->vecSize};
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue