From 230993ba00fee1ff1585f1b94690529bc6d14639 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 22 Jun 2026 09:37:03 +0800 Subject: [PATCH] opt: optimize groupbar animation clip --- src/animation/client.h | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/src/animation/client.h b/src/animation/client.h index 1ea4bab2..5e300547 100644 --- a/src/animation/client.h +++ b/src/animation/client.h @@ -441,15 +441,22 @@ void client_draw_title(Client *c) { int32_t bottom_over = tab_y + config.tab_bar_height - c->mon->m.y - c->mon->m.height; - if (top_over > 0) - th = config.tab_bar_height - top_over; - if (bottom_over > 0) - th = th - bottom_over; - if (right_over > 0) - tw = tw - right_over; - if (left_over > 0) { - tab_x = c->mon->m.x; - tw = tw - left_over; + if (c != grabc && + (ISSCROLLTILED(c) || c->animation.tagining || c->animation.tagouting)) { + if (top_over > 0) { + tab_y = c->mon->m.y; + th = config.tab_bar_height - top_over; + } + if (bottom_over > 0) { + th = th - bottom_over; + } + if (right_over > 0) { + tw = tw - right_over; + } + if (left_over > 0) { + tab_x = c->mon->m.x; + tw = tw - left_over; + } } if (tw <= 0 || th <= 0) {