mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-07-04 00:07:04 -04:00
opt: optimize groupbar animation clip
This commit is contained in:
parent
06eed8cd2e
commit
230993ba00
1 changed files with 16 additions and 9 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue