diff options
author | vaxerski <[email protected]> | 2023-10-07 02:28:23 +0100 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-10-07 02:28:23 +0100 |
commit | 38e242953df06b7b90a09fd7a1480a9cfcdd6ba8 (patch) | |
tree | 08f54b7f54b1545bd34095fa1fa6dd77048e261b /src/managers | |
parent | 61d3d4dee7a4f9f68b4e7dd1e77ccd9acbed9a7c (diff) | |
download | Hyprland-38e242953df06b7b90a09fd7a1480a9cfcdd6ba8.tar.gz Hyprland-38e242953df06b7b90a09fd7a1480a9cfcdd6ba8.zip |
animationmgr: damage floating windows on workspace anim
fixes #3514
Diffstat (limited to 'src/managers')
-rw-r--r-- | src/managers/AnimationManager.cpp | 6 |
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); |