aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-10-07 02:28:23 +0100
committervaxerski <[email protected]>2023-10-07 02:28:23 +0100
commit38e242953df06b7b90a09fd7a1480a9cfcdd6ba8 (patch)
tree08f54b7f54b1545bd34095fa1fa6dd77048e261b
parent61d3d4dee7a4f9f68b4e7dd1e77ccd9acbed9a7c (diff)
downloadHyprland-38e242953df06b7b90a09fd7a1480a9cfcdd6ba8.tar.gz
Hyprland-38e242953df06b7b90a09fd7a1480a9cfcdd6ba8.zip
animationmgr: damage floating windows on workspace anim
fixes #3514
-rw-r--r--src/managers/AnimationManager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp
index 64cb1c0c..db3ebe52 100644
--- a/src/managers/AnimationManager.cpp
+++ b/src/managers/AnimationManager.cpp
@@ -93,6 +93,12 @@ void CAnimationManager::tick() {
if (!PMONITOR)
continue;
WLRBOXPREV = {(int)PMONITOR->vecPosition.x, (int)PMONITOR->vecPosition.y, (int)PMONITOR->vecSize.x, (int)PMONITOR->vecSize.y};
+
+ // TODO: just make this into a damn callback already vax...
+ for (auto& w : g_pCompositor->m_vWindows) {
+ if (!w->isHidden() && w->m_bIsMapped && w->m_bIsFloating)
+ g_pHyprRenderer->damageWindow(w.get());
+ }
} else if (PLAYER) {
WLRBOXPREV = PLAYER->geometry;
PMONITOR = g_pCompositor->getMonitorFromVector(Vector2D(PLAYER->geometry.x, PLAYER->geometry.y) + Vector2D(PLAYER->geometry.width, PLAYER->geometry.height) / 2.f);