summaryrefslogtreecommitdiff
path: root/patch/dwm-statusallmons-20160731-56a31dc.diff
diff options
context:
space:
mode:
authoryuzu-eva <stevenhu@web.de>2022-08-20 23:45:48 +0200
committeryuzu-eva <stevenhu@web.de>2022-08-20 23:45:48 +0200
commit20a405db2c404d54ecf81e361ef926ea6944d91d (patch)
tree775a67d0daf2dc34772999073ac440720a406497 /patch/dwm-statusallmons-20160731-56a31dc.diff
parentdfd8245632ff7238b6d636f0060939f4ae0c1cff (diff)
statusbar shown on all monitors
Diffstat (limited to 'patch/dwm-statusallmons-20160731-56a31dc.diff')
-rw-r--r--patch/dwm-statusallmons-20160731-56a31dc.diff29
1 files changed, 29 insertions, 0 deletions
diff --git a/patch/dwm-statusallmons-20160731-56a31dc.diff b/patch/dwm-statusallmons-20160731-56a31dc.diff
new file mode 100644
index 0000000..126d974
--- /dev/null
+++ b/patch/dwm-statusallmons-20160731-56a31dc.diff
@@ -0,0 +1,29 @@
+URL: http://dwm.suckless.org/patches/statusallmons
+This patch draws and updates the statusbar on all monitors.
+
+Index: dwm/dwm.c
+===================================================================
+--- dwm/dwm.c.orig
++++ dwm/dwm.c
+@@ -715,7 +715,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]);
+ sw = TEXTW(stext) - lrpad / 2; /* no right padding so status text hugs the corner */
+ drw_text(drw, m->ww - sw, 0, sw, bh, lrpad / 2 - 2, stext, 0);
+@@ -1991,9 +1991,11 @@ updatetitle(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