[wiki] [sites] wiki updated
changeset: 707:051fcb69bbdf
tag: tip
user: Pascal Wittmann <mail_AT_pascal-wittmann.de>
date: Fri Mar 18 09:59:59 2011 +0100
files: dwm.suckless.org/patches/dwm-5.8.2-statusallmons.diff dwm.suckless.org/patches/statusallmons.md
description:
added patch statusallmons (draw/update statusbar on all monitors)
diff -r 2f1898ee00fd -r 051fcb69bbdf dwm.suckless.org/patches/dwm-5.8.2-statusallmons.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/dwm-5.8.2-statusallmons.diff Fri Mar 18 09:59:59 2011 +0100
_AT_@ -0,0 +1,39 @@
+--- ../dwm-5.8.2/dwm.c 2011-03-18 09:51:10.000000000 +0100
++++ ./dwm.c 2011-03-18 09:52:15.000000000 +0100
+_AT_@ -700,17 +700,13 @@ drawbar(Monitor *m) {
+ drawtext(m->ltsymbol, dc.norm, False);
+ dc.x += dc.w;
+ x = dc.x;
+- if(m == selmon) { /* status is only drawn on selected monitor */
+- dc.w = TEXTW(stext);
+- dc.x = m->ww - dc.w;
+- if(dc.x < x) {
+- dc.x = x;
+- dc.w = m->ww - x;
+- }
+- drawtext(stext, dc.norm, False);
++ dc.w = TEXTW(stext);
++ dc.x = m->ww - dc.w;
++ if(dc.x < x) {
++ dc.x = x;
++ dc.w = m->ww - x;
+ }
+- else
+- dc.x = m->ww;
++ drawtext(stext, dc.norm, False);
+ if((dc.w = dc.x - x) > bh) {
+ dc.x = x;
+ if(m->sel) {
+_AT_@ -1917,9 +1913,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
diff -r 2f1898ee00fd -r 051fcb69bbdf dwm.suckless.org/patches/statusallmons.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/statusallmons.md Fri Mar 18 09:59:59 2011 +0100
_AT_@ -0,0 +1,14 @@
+STATUSBAR ON ALL MONITORS
+=========================
+
+Description
+-----------
+This patch draws and updates the statusbar on all monitors.
+
+Download
+--------
+* [dwm-5.8.2-statusallmons.diff](dwm-5.8.2-statusallmons.diff) (4.0K) (20110318)
+
+Author
+------
+* Pascal Wittmann - <mail at pascal-wittmann dot de>
Received on Fri Mar 18 2011 - 09:59:58 CET
This archive was generated by hypermail 2.3.0
: Thu Sep 13 2012 - 19:31:41 CEST