about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-14 08:38:26 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-14 08:38:26 +0200
commit4cb78a170c6daa488a90dffb60224fcf2b76fbf0 (patch)
tree1405d6c24d3444b2bf039181ac169e092d285585 /event.c
parent2c66b422e75109562e6ebfb6247300b916e1551a (diff)
downloaddwm-4cb78a170c6daa488a90dffb60224fcf2b76fbf0.tar.gz
removed viewnext/viewprev
Diffstat (limited to 'event.c')
-rw-r--r--event.c32
1 files changed, 9 insertions, 23 deletions
diff --git a/event.c b/event.c
index 9da7ac4..bc7d42c 100644
--- a/event.c
+++ b/event.c
@@ -102,30 +102,16 @@ buttonpress(XEvent *e)
 	XButtonPressedEvent *ev = &e->xbutton;
 
 	if(barwin == ev->window) {
-		switch(ev->button) {
-		default:
-			x = 0;
-			for(a.i = 0; a.i < ntags; a.i++) {
-				x += textw(tags[a.i]);
-				if(ev->x < x) {
-					if(ev->button == Button3)
-						toggleview(&a);
-					else
-						view(&a);
-					return;
-				}
+		x = 0;
+		for(a.i = 0; a.i < ntags; a.i++) {
+			x += textw(tags[a.i]);
+			if(ev->x < x) {
+				if(ev->button == Button3)
+					toggleview(&a);
+				else
+					view(&a);
+				return;
 			}
-			if(ev->button == Button1)
-				viewprev(&a);
-			else if(ev->button == Button3)
-				viewnext(&a);
-			break;
-		case Button4:
-			viewprev(&a);
-			break;
-		case Button5:
-			viewnext(&a);
-			break;
 		}
 	}
 	else if((c = getclient(ev->window))) {
ommit/doc/ranger.applications.html?h=v1.4.2&id=f07bb12fc5c59430e995a64956b36331ce3629b9'>f07bb12f ^
4c13e1f2 ^











4e9450f9 ^
34a60763 ^
4c13e1f2 ^
4e9450f9 ^
4c13e1f2 ^
















34a60763 ^







f07bb12f ^

4c13e1f2 ^

34a60763 ^



f07bb12f ^




34a60763 ^




f07bb12f ^












34a60763 ^
4c13e1f2 ^




f07bb12f ^






34a60763 ^
f07bb12f ^
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129