mirror of https://github.com/hyprwm/Hyprland
window: set config only when both props end anims
This commit is contained in:
parent
e6532ba024
commit
7617c03dfd
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue