fix bartabgroups and systray overlap

Both the bartabgroup systray patches draw to the topbar. This would
result in bartabgroups writing over the bar widgets. This commit fixes
that by making bartabgroup section take the width of the systray into
consdiration when calculating its width.
Ryan 2023-09-17 20:18:06 -04:00
parent ec9c475986
commit f37cd53557
Signed by: ryan
GPG Key ID: 7D7E2E94267DAD95
1 changed files with 3 additions and 3 deletions

6
dwm.c
View File

@ -980,15 +980,15 @@ drawbar(Monitor *m)
x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0);
// Draw bartabgroups
drw_rect(drw, x, 0, m->ww - tw - x, bh, 1, 1);
drw_rect(drw, x, 0, m->ww - tw - stw - x, bh, 1, 1);
if ((w = m->ww - tw - stw - x) > bh) {
bartabcalculate(m, x, tw, -1, bartabdraw);
bartabcalculate(m, x, tw + stw, -1, bartabdraw);
if (BARTAB_BOTTOMBORDER) {
drw_setscheme(drw, scheme[SchemeTabActive]);
drw_rect(drw, 0, bh - 1, m->ww, 1, 1, 0);
}
}
drw_map(drw, m->barwin, 0, 0, m->ww - stw, bh);
drw_map(drw, m->barwin, 0, 0, m->ww, bh);
}
void