about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-11 10:00:47 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-11 10:00:47 +0200
commit7d4184dc5c5381d638efb9f26fd8bd6d8a6fe372 (patch)
treef9df230fceb08d375d96ff8c51ced915604e4931
parent8278f0a6befccfb4eb156cb312c69e032158734a (diff)
downloaddwm-7d4184dc5c5381d638efb9f26fd8bd6d8a6fe372.tar.gz
realized that client focussing through the bar is pretty useless, better is sloppy view focussing for B1/B3 as well instead
-rw-r--r--event.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/event.c b/event.c
index 53a110a..8a1c2a9 100644
--- a/event.c
+++ b/event.c
@@ -103,7 +103,7 @@ buttonpress(XEvent *e)
 
 	if(barwin == ev->window) {
 		switch(ev->button) {
-		case Button1:
+		default:
 			x = 0;
 			for(a.i = 0; a.i < ntags; a.i++) {
 				x += textw(tags[a.i]);
@@ -112,10 +112,10 @@ buttonpress(XEvent *e)
 					return;
 				}
 			}
-			focusprev(NULL);
-			break;
-		case Button3:
-			focusnext(NULL);
+			if(ev->button == Button1)
+				viewprev(&a);
+			else if(ev->button == Button3)
+				viewnext(&a);
 			break;
 		case Button4:
 			viewprev(&a);
:23 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2015-03-15 09:49:27 -0700 929 - recipes again take ingredients and reply with results' href='/akkartik/mu/commit/cpp/021call_ingredient?h=hlt&id=69f04c3fb0136778b80f7f64e16ae37cf8d22907'>69f04c3f ^
57699011 ^
69f04c3f ^
88be3dbc ^
1ead3562 ^
4be9a93b ^

1ead3562 ^
192d59d3 ^
4be9a93b ^


ca01193d ^
fca0ebbe ^
016599f1 ^
b24eb476 ^
50eab110 ^

69f04c3f ^
3eeea0a2 ^
6c96a437 ^
67573caf ^
3473c63a ^
c9a5a7ba ^
016599f1 ^
78a12c9d ^
1fa53058 ^
69f04c3f ^
1848b18f ^

69f04c3f ^
795f5244 ^
4a48bedc ^
166e3c0d ^
69f04c3f ^
166e3c0d ^
2b250717 ^
e4630643 ^

166e3c0d ^



31401373 ^
67573caf ^
3473c63a ^
c9a5a7ba ^
3a982057 ^


78c50205 ^
9dcbec39 ^
3a982057 ^
81c87f08 ^

53ba69a7 ^
691b529e ^
1fa53058 ^
0487a30e ^
67573caf ^
ac0e9db5 ^
0487a30e ^
67573caf ^
69f04c3f ^
4be9a93b ^
3e849f11 ^
9dcbec39 ^
75aa3a98 ^
0487a30e ^
75aa3a98 ^
2d29369f ^
0487a30e ^
4be9a93b ^
69f04c3f ^

717ab659 ^
5f98a10c ^

1ead3562 ^
3e849f11 ^

1ead3562 ^
192d59d3 ^
3e849f11 ^
192d59d3 ^
3e849f11 ^
88be3dbc ^
1ead3562 ^
bc643692 ^
717ab659 ^
1ead3562 ^
192d59d3 ^
d52406cc ^
717ab659 ^
d52406cc ^
717ab659 ^








795f5244 ^
4a48bedc ^
166e3c0d ^



717ab659 ^

67573caf ^
717ab659 ^


23d3a022 ^

88be3dbc ^
1ead3562 ^
bc643692 ^
717ab659 ^
1ead3562 ^
192d59d3 ^
d52406cc ^
717ab659 ^






795f5244 ^
4a48bedc ^
166e3c0d ^
717ab659 ^
166e3c0d ^
2b250717 ^
e4630643 ^

5f98a10c ^
9dcbec39 ^
e4630643 ^

166e3c0d ^



b24eb476 ^
67573caf ^
0487a30e ^
67573caf ^
ac0e9db5 ^
827898fc ^
67573caf ^
717ab659 ^

ac0e9db5 ^
0487a30e ^

827898fc ^
717ab659 ^



c9a5a7ba ^
78c50205 ^
c9a5a7ba ^
78c50205 ^

c9a5a7ba ^
af023b32 ^

1fb0cf9e ^
af023b32 ^


1fb0cf9e ^
af023b32 ^
93d4cc93 ^
1fb0cf9e ^
93d4cc93 ^
c9a5a7ba ^
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193