dwm

Mahdi's build of dwm
git clone git://mahdi.pw/dwm.git
Log | Files | Refs | README | LICENSE

dwm-statusallmons-6.2.diff (798B)


      1 diff -up a/dwm.c b/dwm.c
      2 --- a/dwm.c	2020-07-09 16:49:10.023585649 +0200
      3 +++ b/dwm.c	2020-07-09 16:49:43.497542191 +0200
      4 @@ -702,7 +702,7 @@ drawbar(Monitor *m)
      5  	Client *c;
      6  
      7  	/* draw status first so it can be overdrawn by tags later */
      8 -	if (m == selmon) { /* status is only drawn on selected monitor */
      9 +	if (m == selmon || 1) { /* status is only drawn on selected monitor */
     10  		drw_setscheme(drw, scheme[SchemeNorm]);
     11  		sw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
     12  		drw_text(drw, m->ww - sw, 0, sw, bh, 0, stext, 0);
     13 @@ -1987,9 +1987,11 @@ updatesizehints(Client *c)
     14  void
     15  updatestatus(void)
     16  {
     17 +	Monitor* m;
     18  	if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext)))
     19  		strcpy(stext, "dwm-"VERSION);
     20 -	drawbar(selmon);
     21 +	for(m = mons; m; m = m->next)
     22 +		drawbar(m);
     23  }
     24  
     25  void