draws statusbar on all monitors now, not just selected

This commit is contained in:
Alexander Bocken 2020-07-02 12:28:12 +02:00
parent 45ad31ccd9
commit 07d3f3b125

10
dwm.c
View File

@ -707,11 +707,11 @@ drawbar(Monitor *m)
Client *c; Client *c;
/* draw status first so it can be overdrawn by tags later */ /* draw status first so it can be overdrawn by tags later */
if (m == selmon) { /* status is only drawn on selected monitor */ /* removed conditional here to only draw on selected monitor, now draws on all */
drw_setscheme(drw, scheme[SchemeNorm]); drw_setscheme(drw, scheme[SchemeNorm]);
tw = TEXTW(stext) - lrpad + 2; /* 2px right padding */ tw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
drw_text(drw, m->ww - tw - 2 * sp, 0, tw, bh, 0, stext, 0); drw_text(drw, m->ww - tw - 2 * sp, 0, tw, bh, 0, stext, 0);
}
for (c = m->clients; c; c = c->next) { for (c = m->clients; c; c = c->next) {
occ |= c->tags; occ |= c->tags;