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.
parent
ec9c475986
commit
f37cd53557
6
dwm.c
6
dwm.c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue