summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp6
1 files 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) {