From 07d3f3b1252f56fd9ffb383d7ef51189d59b8fe1 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Thu, 2 Jul 2020 12:28:12 +0200 Subject: [PATCH] draws statusbar on all monitors now, not just selected --- dwm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dwm.c b/dwm.c index 582c9c9..f8bb823 100644 --- a/dwm.c +++ b/dwm.c @@ -707,11 +707,11 @@ drawbar(Monitor *m) Client *c; /* draw status first so it can be overdrawn by tags later */ - if (m == selmon) { /* status is only drawn on selected monitor */ - drw_setscheme(drw, scheme[SchemeNorm]); - tw = TEXTW(stext) - lrpad + 2; /* 2px right padding */ - drw_text(drw, m->ww - tw - 2 * sp, 0, tw, bh, 0, stext, 0); - } + /* removed conditional here to only draw on selected monitor, now draws on all */ + drw_setscheme(drw, scheme[SchemeNorm]); + tw = TEXTW(stext) - lrpad + 2; /* 2px right padding */ + drw_text(drw, m->ww - tw - 2 * sp, 0, tw, bh, 0, stext, 0); + for (c = m->clients; c; c = c->next) { occ |= c->tags;