opt: optimize tag animaiton when tagout from overview

This commit is contained in:
DreamMaoMao 2026-06-15 13:43:56 +08:00
parent 8ca013e6c3
commit fa24c606a0

View file

@ -117,6 +117,9 @@ void set_arrange_hidden(Monitor *m, Client *c, bool want_animation) {
c->animation.tagining = false; c->animation.tagining = false;
set_tagout_animation(m, c); set_tagout_animation(m, c);
} else { } else {
c->animation.running = false;
wlr_scene_node_set_enabled(&c->scene->node, false); wlr_scene_node_set_enabled(&c->scene->node, false);
c->animainit_geom = c->current = c->pending = c->animation.current =
c->geom;
} }
} }