Browse Source

Draw status bar on all monitors

Frans Bergman 2 years ago
parent
commit
d84c31119c
1 changed files with 4 additions and 2 deletions
  1. 4 2
      dwm.c

+ 4 - 2
dwm.c

@@ -883,7 +883,7 @@ 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 */
+	if (m == selmon || 1) { /* status is only drawn on selected monitor */
 		drw_setscheme(drw, scheme[SchemeNorm]);
 		/* calculate text width while ignoring special chars */
 		sw = 0;
@@ -2420,9 +2420,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->next)
+		drawbar(m);
 }
 
 void