opt: tag animation should overwrite the open animaiton

This commit is contained in:
DreamMaoMao 2025-04-29 13:11:51 +08:00
parent 3b3f60e954
commit e95bbe31c7

View file

@ -4810,7 +4810,8 @@ void resize(Client *c, struct wlr_box geo, int interact) {
client_set_opacity(c, 1);
}
if (c->animation.action == OPEN && wlr_box_equal(&c->geom, &c->current)) {
if (c->animation.action == OPEN && !c->animation.tagining
&& !c->animation.tagouting && wlr_box_equal(&c->geom, &c->current)) {
c->animation.action = c->animation.action;
} else if (c->animation.tagouting) {
c->animation.duration = animation_duration_tag;