From 284197be0b8819c1bcee50d8c57e1417dc9377d9 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 20 Apr 2025 12:55:52 +0800 Subject: [PATCH] opt: not trigger tagin animaiton when view to current tag --- src/maomao.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/maomao.c b/src/maomao.c index 7a410a2..94fe95e 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -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) {