summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjonsykkel <jonrevold@gmail.com>2021-01-05 18:51:58 +0100
committerjonsykkel <jonrevold@gmail.com>2021-01-05 18:56:03 +0100
commitfe03729505e411e8950892f8e29d50487fd9db0c (patch)
tree61834353eebca0a64db00969111741e55499e0fd
parentb1934481cc0ddb8e96a80bfc29aa2937916bfafc (diff)
downloaddwm-fe03729505e411e8950892f8e29d50487fd9db0c.tar.gz
status both montor
-rw-r--r--dwm.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/dwm.c b/dwm.c
index 4b9a544..656fc71 100644
--- a/dwm.c
+++ b/dwm.c
@@ -714,22 +714,22 @@ 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, 0, tw, bh, 0, stext, 0);
- while (1) {
- if ((unsigned int)*ts > LENGTH(colors)) { ts++; continue ; }
- ctmp = *ts;
- *ts = '\0';
- drw_text(drw, m->ww - tw + tx, 0, tw - tx, bh, 0, tp, 0);
- tx += TEXTW(tp) -lrpad;
- if (ctmp == '\0') { break; }
- drw_setscheme(drw, scheme[(unsigned int)(ctmp-1)]);
- *ts = ctmp;
- tp = ++ts;
- }
- }
+// 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, 0, tw, bh, 0, stext, 0);
+ while (1) {
+ if ((unsigned int)*ts > LENGTH(colors)) { ts++; continue ; }
+ ctmp = *ts;
+ *ts = '\0';
+ drw_text(drw, m->ww - tw + tx, 0, tw - tx, bh, 0, tp, 0);
+ tx += TEXTW(tp) -lrpad;
+ if (ctmp == '\0') { break; }
+ drw_setscheme(drw, scheme[(unsigned int)(ctmp-1)]);
+ *ts = ctmp;
+ tp = ++ts;
+ }
+// }
for (c = m->clients; c; c = c->next) {
occ |= c->tags;