fix disabled anims not updating

This commit is contained in:
vaxerski 2021-12-06 19:10:38 +01:00
parent 2ca2ddfd2e
commit 7d39393cf8

View file

@ -16,8 +16,6 @@ void AnimationUtil::move() {
if (ConfigManager::getInt("anim.enabled") == 0 || window.getIsFloating()) {
// Disabled animations. instant warps.
window.setRealPosition(window.getEffectivePosition());
window.setRealSize(window.getEffectiveSize());
if (VECTORDELTANONZERO(window.getRealPosition(), window.getEffectivePosition())
|| VECTORDELTANONZERO(window.getRealSize(), window.getEffectiveSize())) {
@ -25,6 +23,9 @@ void AnimationUtil::move() {
updateRequired = true;
}
window.setRealPosition(window.getEffectivePosition());
window.setRealSize(window.getEffectiveSize());
continue;
}