summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-28 08:02:29 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-28 08:02:29 +0200
commit2dd5212a795b27422d601df0566ae0d6644bd4c8 (patch)
tree6d2bb1e654511bbf9a0ee8a762d93d75eb320e16
parentoh frking dear big font... (diff)
downloaddwm-2dd5212a795b27422d601df0566ae0d6644bd4c8.tar.gz
dwm-2dd5212a795b27422d601df0566ae0d6644bd4c8.zip
applied sanders somepatches.patch
Diffstat (limited to '')
-rw-r--r--config.default.h2
-rw-r--r--draw.c9
-rw-r--r--dwm.17
-rw-r--r--event.c6
4 files changed, 16 insertions, 8 deletions
diff --git a/config.default.h b/config.default.h
index f28f5b8..6147c98 100644
--- a/config.default.h
+++ b/config.default.h
@@ -55,7 +55,7 @@ static Key key[] = { \
55}; 55};
56 56
57/* Query class:instance:title for regex matching info with following command: 57/* Query class:instance:title for regex matching info with following command:
58 * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/{ printf("%s\n",$2) }' */ 58 * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
59#define RULES \ 59#define RULES \
60static Rule rule[] = { \ 60static Rule rule[] = { \
61 /* class:instance:title regex tags regex isfloat */ \ 61 /* class:instance:title regex tags regex isfloat */ \
diff --git a/draw.c b/draw.c
index 64b11af..3938e5e 100644
--- a/draw.c
+++ b/draw.c
@@ -97,9 +97,7 @@ drawstatus()
97 int i, x; 97 int i, x;
98 98
99 dc.x = dc.y = 0; 99 dc.x = dc.y = 0;
100 dc.w = bw;
101 100
102 drawtext(NULL, dc.status, False);
103 for(i = 0; i < ntags; i++) { 101 for(i = 0; i < ntags; i++) {
104 dc.w = textw(tags[i]); 102 dc.w = textw(tags[i]);
105 if(seltag[i]) 103 if(seltag[i])
@@ -121,9 +119,12 @@ drawstatus()
121 } 119 }
122 drawtext(stext, dc.status, False); 120 drawtext(stext, dc.status, False);
123 121
124 if(sel && ((dc.w = dc.x - x) > bh)) { 122 if((dc.w = dc.x - x) > bh) {
125 dc.x = x; 123 dc.x = x;
126 drawtext(sel->name, dc.sel, False); 124 if(sel)
125 drawtext(sel->name, dc.sel, False);
126 else
127 drawtext(NULL, dc.norm, False);
127 } 128 }
128 XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0); 129 XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
129 XSync(dpy, False); 130 XSync(dpy, False);
diff --git a/dwm.1 b/dwm.1
index 61663ff..4e23f1c 100644
--- a/dwm.1
+++ b/dwm.1
@@ -40,7 +40,12 @@ is read and displayed in the status text area.
40.TP 40.TP
41.B Button1 41.B Button1
42click on a tag label views all windows with that 42click on a tag label views all windows with that
43.BR tag . 43.BR tag ,
44click on the mode label toggles between
45.B tiled
46and
47.B floating
48mode.
44.TP 49.TP
45.B Button3 50.B Button3
46click on a tag label adds/removes all windows with that 51click on a tag label adds/removes all windows with that
diff --git a/event.c b/event.c
index 3c83aa8..1d2227d 100644
--- a/event.c
+++ b/event.c
@@ -116,8 +116,10 @@ buttonpress(XEvent *e)
116 return; 116 return;
117 } 117 }
118 } 118 }
119 if(ev->x < x + bmw) 119 if(ev->x < x + bmw) {
120 togglemode(NULL); 120 if(ev->button == Button1)
121 togglemode(NULL);
122 }
121 } 123 }
122 else if((c = getclient(ev->window))) { 124 else if((c = getclient(ev->window))) {
123 focus(c); 125 focus(c);