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);
ew DeVault <sir@cmpwn.com> 2019-05-11 13:12:44 -0400 Split ex line text handling into dedicated widget' href='/akspecs/aerc/commit/widgets/exline.go?h=0.5.0&id=8fa458323058c8998408f88b80d07c687fccd521'>8fa4583 ^
661e3ec ^

6728a11 ^
577248f ^
8fa4583 ^



a073d76 ^
8fa4583 ^



661e3ec ^

661e3ec ^
5685a17 ^
661e3ec ^

1418e1b ^
8fa4583 ^
661e3ec ^

1170893 ^
8fa4583 ^
661e3ec ^

80e891a ^



80e891a ^
72e4b5e ^
8fa4583 ^
80e891a ^
72e4b5e ^
a073d76 ^
8fa4583 ^

661e3ec ^



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