From a34e192433d62e94692a90ea88f3ad384842d04e Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 16 Nov 2023 20:20:41 +0000 Subject: renderer: clip floating boxes on slide anim fixes #3514 --- src/managers/AnimationManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/managers/AnimationManager.cpp') diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp index e292de29..3d6ebdd8 100644 --- a/src/managers/AnimationManager.cpp +++ b/src/managers/AnimationManager.cpp @@ -213,6 +213,12 @@ void CAnimationManager::tick() { continue; w->updateWindowDecos(); + + if (w->m_bIsFloating) { + auto bb = w->getFullWindowBoundingBox(); + bb.translate(PWORKSPACE->m_vRenderOffset.vec()); + g_pHyprRenderer->damageBox(&bb); + } } } else if (PLAYER) { if (PLAYER->layer == ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND || PLAYER->layer == ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM) -- cgit v1.2.3