mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-26 14:55:58 +01:00
Stop animating floating window movements.
This commit is contained in:
parent
ad87629d51
commit
aec53d2420
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ void AnimationUtil::move() {
|
||||||
for (auto& window : g_pWindowManager->windows) {
|
for (auto& window : g_pWindowManager->windows) {
|
||||||
// check if window needs an animation.
|
// check if window needs an animation.
|
||||||
|
|
||||||
if (ConfigManager::getInt("anim.enabled") == 0) {
|
if (ConfigManager::getInt("anim.enabled") == 0 || window.getIsFloating()) {
|
||||||
// Disabled animations. instant warps.
|
// Disabled animations. instant warps.
|
||||||
window.setRealPosition(window.getEffectivePosition());
|
window.setRealPosition(window.getEffectivePosition());
|
||||||
window.setRealSize(window.getEffectiveSize());
|
window.setRealSize(window.getEffectiveSize());
|
||||||
|
|
Loading…
Reference in a new issue