From 38e242953df06b7b90a09fd7a1480a9cfcdd6ba8 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 7 Oct 2023 02:28:23 +0100 Subject: [PATCH] animationmgr: damage floating windows on workspace anim fixes #3514 --- src/managers/AnimationManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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);