aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authordawsers <[email protected]>2024-11-07 00:30:17 +0100
committerGitHub <[email protected]>2024-11-06 23:30:17 +0000
commit2ec2b3bfb39ba22ba945bb23dc95970dfa50eb5a (patch)
tree5630989d78d228e0cd9ed170928f80de8a458260
parent0ec128e5ed5e15aaebff6c4b5983326ab524d690 (diff)
downloadHyprland-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.cpp2
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;
}