From c0b8e0ee22547e11e8ffb3c4e7bb2f8e5d4599f1 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Wed, 10 Sep 2025 09:25:25 +0800 Subject: [PATCH] fix: miss reset tagouting state when arrange with no animaiton --- src/mango.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/mango.c b/src/mango.c index 4e1fffd..03af3db 100644 --- a/src/mango.c +++ b/src/mango.c @@ -1347,9 +1347,9 @@ arrange(Monitor *m, bool want_animation) { resize(c, c->geom, 0); } else { - if ((c->tags & (1 << (m->pertag->prevtag - 1))) && - m->pertag->prevtag != 0 && m->pertag->curtag != 0 && - animations) { + if (animations && want_animation && + (c->tags & (1 << (m->pertag->prevtag - 1))) && + m->pertag->prevtag != 0 && m->pertag->curtag != 0) { c->animation.tagouting = true; c->animation.tagining = false; if (m->pertag->curtag > m->pertag->prevtag) { @@ -1373,6 +1373,9 @@ arrange(Monitor *m, bool want_animation) { resize(c, c->geom, 0); } } else { + c->animation.tagouting = false; + c->animation.tagining = false; + c->animation.tagouted = false; wlr_scene_node_set_enabled(&c->scene->node, false); client_set_suspended(c, true); }