opt: not trigger tagin animaiton when view to current tag

This commit is contained in:
DreamMaoMao 2025-04-20 12:55:52 +08:00
parent 1a174b1828
commit 284197be0b

View file

@ -1725,7 +1725,7 @@ arrange(Monitor *m, bool want_animation) {
} else {
if ((c->tags & (1 << (selmon->pertag->prevtag - 1))) &&
want_animation && m->pertag->prevtag != 0 &&
m->pertag->prevtag != 0 &&
m->pertag->curtag != 0 && animations) {
c->animation.tagouting = true;
c->animation.tagining = false;
@ -6745,9 +6745,9 @@ void view_in_mon(const Arg *arg, bool want_animation, Monitor *m) {
if (arg->ui == 0)
return;
// if ((m->tagset[m->seltags] & arg->ui & TAGMASK) != 0) {
// want_animation = false;
// }
if ((m->tagset[m->seltags] & arg->ui & TAGMASK) != 0) {
want_animation = false;
}
m->seltags ^= 1; /* toggle sel tagset */
if (arg->ui & TAGMASK) {