mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 13:35:57 +01:00
fix disabled anims not updating
This commit is contained in:
parent
2ca2ddfd2e
commit
7d39393cf8
1 changed files with 3 additions and 2 deletions
|
@ -16,8 +16,6 @@ void AnimationUtil::move() {
|
||||||
|
|
||||||
if (ConfigManager::getInt("anim.enabled") == 0 || window.getIsFloating()) {
|
if (ConfigManager::getInt("anim.enabled") == 0 || window.getIsFloating()) {
|
||||||
// Disabled animations. instant warps.
|
// Disabled animations. instant warps.
|
||||||
window.setRealPosition(window.getEffectivePosition());
|
|
||||||
window.setRealSize(window.getEffectiveSize());
|
|
||||||
|
|
||||||
if (VECTORDELTANONZERO(window.getRealPosition(), window.getEffectivePosition())
|
if (VECTORDELTANONZERO(window.getRealPosition(), window.getEffectivePosition())
|
||||||
|| VECTORDELTANONZERO(window.getRealSize(), window.getEffectiveSize())) {
|
|| VECTORDELTANONZERO(window.getRealSize(), window.getEffectiveSize())) {
|
||||||
|
@ -25,6 +23,9 @@ void AnimationUtil::move() {
|
||||||
updateRequired = true;
|
updateRequired = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.setRealPosition(window.getEffectivePosition());
|
||||||
|
window.setRealSize(window.getEffectiveSize());
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue