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.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/event.c b/event.c
index bdf4071..e97abad 100644
--- a/event.c
+++ b/event.c
@@ -109,10 +109,17 @@ buttonpress(XEvent *e)
 		for(a.i = 0; a.i < ntags; a.i++) {
 			x += textw(tags[a.i]);
 			if(ev->x < x) {
-				if(ev->button == Button1)
+				switch(ev->button) {
+				case Button1:
 					view(&a);
-				else if(ev->button == Button3)
+					break;
+				case Button2:
+					toggletag(&a);
+					break;
+				case Button3:
 					toggleview(&a);
+					break;
+				}
 				return;
 			}
 		}
66stream.mu?h=main&id=502d2ea540bbb66f2bb5e649c7c7743973859092'>502d2ea5 ^
8fb0e672 ^


77d5b5d6 ^
8fb0e672 ^
502d2ea5 ^





8fb0e672 ^


77d5b5d6 ^
8fb0e672 ^
502d2ea5 ^




8fb0e672 ^
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