about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'event.c')
-rw-r--r--event.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/event.c b/event.c
index c9ad387..2deef14 100644
--- a/event.c
+++ b/event.c
@@ -131,8 +131,20 @@ buttonpress(XEvent *e) {
 				return;
 			}
 		}
-		if((ev->x < x + bmw) && (ev->button == Button1))
-			togglemode(NULL);
+		if(ev->x < x + bmw)
+			switch(ev->button) {
+			case Button1:
+				togglemode(NULL);
+				break;
+			case Button4:
+				a.i = 1;
+				incnmaster(&a);
+				break;
+			case Button5:
+				a.i = -1;
+				incnmaster(&a);
+				break;
+			}
 	}
 	else if((c = getclient(ev->window))) {
 		focus(c);
gt; 2006-08-25 12:59:45 +0200 new color stuff/new rendering stuff' href='/acidbong/suckless/dwm/commit/config.default.h?h=5.1&id=b55bd709ee6d0b09c141bf5ffe0647866e0374ef'>b55bd70 ^
b515765 ^
b55bd70 ^






b515765 ^
1bf0c4a ^
b515765 ^

b515765 ^
292ccc4 ^
df74b26 ^


292ccc4 ^
df74b26 ^
3a1343a ^

8b4bc82 ^



39ffc18 ^
8b4bc82 ^



39ffc18 ^
df74b26 ^

bab575c ^
8b4bc82 ^



39ffc18 ^
8b4bc82 ^



39ffc18 ^
df74b26 ^
b515765 ^

d6a6eca ^
2dd5212 ^
b515765 ^

d6a6eca ^
e21d93b ^

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
67