修复tagout动画终点位置

This commit is contained in:
DreamMaoMao 2025-02-11 23:02:22 +08:00
parent dc970fff46
commit 33378fa08b

4
main.c
View file

@ -1206,11 +1206,11 @@ arrange(Monitor *m, bool want_animation) {
c->animation.tagouting = true;
if (m->pertag->curtag > m->pertag->prevtag) {
c->pending = c->geom;
c->pending.x -= c->geom.x + m->m.width;
c->pending.x = c->mon->m.x - c->geom.width;
resize(c, c->geom, 0);
} else {
c->pending = c->geom;
c->pending.x -= c->geom.x - m->m.width;
c->pending.x = c->geom.x + c->mon->m.width - (c->geom.x - c->mon->m.x);
resize(c, c->geom, 0);
}
} else {