From 359bb2bdda9fc73ca755a33a52648df109098c49 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 5 May 2022 15:16:10 +0200 Subject: [PATCH] dont change size if partial damage --- src/managers/AnimationManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp index 975b1105..a82cd7ab 100644 --- a/src/managers/AnimationManager.cpp +++ b/src/managers/AnimationManager.cpp @@ -154,8 +154,8 @@ void CAnimationManager::tick() { } - // set size and pos if valid - if (g_pCompositor->windowValidMapped(PWINDOW)) + // set size and pos if valid, but only if damage policy entire (dont if border for example) + if (g_pCompositor->windowValidMapped(PWINDOW) && av->m_eDamagePolicy == AVARDAMAGE_ENTIRE) g_pXWaylandManager->setWindowSize(PWINDOW, PWINDOW->m_vRealSize.goalv()); } }