about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--event.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/event.c b/event.c
index 650967e..53a110a 100644
--- a/event.c
+++ b/event.c
@@ -103,15 +103,19 @@ buttonpress(XEvent *e)
 
 	if(barwin == ev->window) {
 		switch(ev->button) {
-		default:
+		case Button1:
 			x = 0;
 			for(a.i = 0; a.i < ntags; a.i++) {
 				x += textw(tags[a.i]);
 				if(ev->x < x) {
 					view(&a);
-					break;
+					return;
 				}
 			}
+			focusprev(NULL);
+			break;
+		case Button3:
+			focusnext(NULL);
 			break;
 		case Button4:
 			viewprev(&a);
'/akkartik/mu/commit/html/apps/tui.mu.html?h=hlt&id=828bc32057511bc88bd651f2e7c9cf19706378d3'>828bc320 ^
39234e89 ^
828bc320 ^
ec73ed12 ^



828bc320 ^
9cbd4199 ^
828bc320 ^

9cbd4199 ^

9f9aad34 ^



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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96