windows: Revert "window: set config only when both props end anims" (#5904)

This reverts commit 7617c03dfd,
fixing a bug that caused the bottom right corner of windows to
animate oddly.
This commit is contained in:
outfoxxed 2024-05-06 07:32:01 -07:00 committed by GitHub
parent a8a04c746b
commit 05e4a3f1a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,10 +36,10 @@ void setAnimToMove(void* data) {
CBaseAnimatedVariable* animvar = (CBaseAnimatedVariable*)data; CBaseAnimatedVariable* animvar = (CBaseAnimatedVariable*)data;
if (animvar->getWindow() && !animvar->getWindow()->m_vRealPosition.isBeingAnimated() && !animvar->getWindow()->m_vRealSize.isBeingAnimated()) {
animvar->setConfig(PANIMCFG); animvar->setConfig(PANIMCFG);
if (animvar->getWindow() && !animvar->getWindow()->m_vRealPosition.isBeingAnimated() && !animvar->getWindow()->m_vRealSize.isBeingAnimated())
animvar->getWindow()->m_bAnimatingIn = false; animvar->getWindow()->m_bAnimatingIn = false;
}
} }
void Events::listener_mapWindow(void* owner, void* data) { void Events::listener_mapWindow(void* owner, void* data) {