From 7617c03dfd0073654ca8c4d9a6f5db278d14cd28 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 19 Mar 2024 02:53:10 +0000 Subject: [PATCH] window: set config only when both props end anims --- src/events/Windows.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index f38c1fb0..7c4ae404 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -35,10 +35,10 @@ void setAnimToMove(void* data) { CBaseAnimatedVariable* animvar = (CBaseAnimatedVariable*)data; - animvar->setConfig(PANIMCFG); - - if (animvar->getWindow() && !animvar->getWindow()->m_vRealPosition.isBeingAnimated() && !animvar->getWindow()->m_vRealSize.isBeingAnimated()) + if (animvar->getWindow() && !animvar->getWindow()->m_vRealPosition.isBeingAnimated() && !animvar->getWindow()->m_vRealSize.isBeingAnimated()) { + animvar->setConfig(PANIMCFG); animvar->getWindow()->m_bAnimatingIn = false; + } } void Events::listener_mapWindow(void* owner, void* data) {