Introduction
Introduction Statistics Contact Development Disclaimer Help
dwm-statusallmons-6.2.diff - sites - public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log
Files
Refs
---
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 mon…
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
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.