about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-07-26 20:15:02 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-07-26 20:15:02 +0200
commit154497541d1378d3aded02df06029de94d8af586 (patch)
tree59d001879dd8ec2a9d202bfe0ebd1d48990dec4d /event.c
parente0cfe076485e7df266b53eaffaa093d9c94a61a7 (diff)
downloaddwm-154497541d1378d3aded02df06029de94d8af586.tar.gz
applied Jeroen's {clean,spell}.diff patches, thanks Jeroen!
Diffstat (limited to 'event.c')
-rw-r--r--event.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/event.c b/event.c
index ac96df1..1454b0b 100644
--- a/event.c
+++ b/event.c
@@ -142,12 +142,8 @@ buttonpress(XEvent *e) {
 				return;
 			}
 		}
-		if(ev->x < x + blw)
-			switch(ev->button) {
-			case Button1:
-				setlayout(NULL);
-				break;
-			}
+		if(ev->x < x + blw && ev->button == Button1)
+			setlayout(NULL);
 		else if(ev->button == Button4)
 			focusclient("-1");
 		else if(ev->button == Button5)
e033589680fddf87000e5788774'>^
b515765 ^
b55bd70 ^

97ced11 ^

b55bd70 ^


10885d3 ^
97ced11 ^
b661426 ^
b515765 ^

b515765 ^
292ccc4 ^
df74b26 ^


292ccc4 ^
4b5b3d9 ^

8b4bc82 ^



39ffc18 ^
8b4bc82 ^



39ffc18 ^
df74b26 ^

bab575c ^
8b4bc82 ^



39ffc18 ^
8b4bc82 ^



39ffc18 ^
df74b26 ^
b515765 ^

d6a6eca ^
2dd5212 ^
b515765 ^

d6a6eca ^
e21d93b ^
a08d83b ^
b515765 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66