diff options
| author | Vaxry <vaxry@vaxry.net> | 2023-11-16 20:20:41 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2023-11-16 20:20:41 +0000 |
| commit | a34e192433d62e94692a90ea88f3ad384842d04e (patch) | |
| tree | 3ca371cef1d39aae69317b9cd22a6e3c09797fed /src/managers/AnimationManager.cpp | |
| parent | 4868d4dfd3dca053915ddc3ec6444e7e96ebd8c6 (diff) | |
renderer: clip floating boxes on slide anim
fixes #3514
Diffstat (limited to 'src/managers/AnimationManager.cpp')
| -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 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) |
