From edb804a68d5d299838e67918ec45e2c9853b1056 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Sat, 23 Nov 2024 09:42:23 -0800 Subject: [PATCH] statusallmon --- dwm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); }