diff --git a/dwm.c b/dwm.c index fecf28c..9dfeeb5 100644 --- a/dwm.c +++ b/dwm.c @@ -829,7 +829,7 @@ drawbar(Monitor *m) stw = getsystraywidth(); /* draw status first so it can be overdrawn by tags later */ - if (m == selmon) { /* status is only drawn on selected monitor */ + if (m == selmon || 1) { /* status is only drawn on selected monitor */ drw_setscheme(drw, scheme[SchemeNorm]); tw = TEXTW(stext) - lrpad / 2 + 2; /* 2px extra right padding */ drw_text(drw, m->ww - tw - stw, 0, tw, bh, lrpad / 2 - 2, stext, 0); @@ -2268,9 +2268,11 @@ updatesizehints(Client *c) void updatestatus(void) { + Monitor* m; if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext))) strcpy(stext, "dwm-"VERSION); - drawbar(selmon); + for(m = mons; m; m=m->nextx) + drawbar(selmon); updatesystray(); }