opt: optimize groupbar animation clip

This commit is contained in:
DreamMaoMao 2026-06-22 09:37:03 +08:00
parent 06eed8cd2e
commit 230993ba00

View file

@ -441,15 +441,22 @@ void client_draw_title(Client *c) {
int32_t bottom_over = int32_t bottom_over =
tab_y + config.tab_bar_height - c->mon->m.y - c->mon->m.height; tab_y + config.tab_bar_height - c->mon->m.y - c->mon->m.height;
if (top_over > 0) if (c != grabc &&
th = config.tab_bar_height - top_over; (ISSCROLLTILED(c) || c->animation.tagining || c->animation.tagouting)) {
if (bottom_over > 0) if (top_over > 0) {
th = th - bottom_over; tab_y = c->mon->m.y;
if (right_over > 0) th = config.tab_bar_height - top_over;
tw = tw - right_over; }
if (left_over > 0) { if (bottom_over > 0) {
tab_x = c->mon->m.x; th = th - bottom_over;
tw = tw - left_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) { if (tw <= 0 || th <= 0) {