diff options
author | dawsers <[email protected]> | 2024-11-07 00:30:17 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-11-06 23:30:17 +0000 |
commit | 2ec2b3bfb39ba22ba945bb23dc95970dfa50eb5a (patch) | |
tree | 5630989d78d228e0cd9ed170928f80de8a458260 | |
parent | 0ec128e5ed5e15aaebff6c4b5983326ab524d690 (diff) | |
download | Hyprland-2ec2b3bfb39ba22ba945bb23dc95970dfa50eb5a.tar.gz Hyprland-2ec2b3bfb39ba22ba945bb23dc95970dfa50eb5a.zip |
renderer: minor fixup to window rendering logic (#8359)
Don't render animating windows out of their monitor when they are not moving workspaces
-rw-r--r-- | src/render/Renderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 6af3a99d..469acda9 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -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; } |