about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-25 15:06:38 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-25 15:06:38 +0200
commitd37dfa1bedbfadb5d39aa1937e77d4fd44319018 (patch)
treeac42e31987633fd32144310e21210cd0ed20a20d /event.c
parent9f35cc52fe27f694ce146356e6c71267ecd19217 (diff)
downloaddwm-d37dfa1bedbfadb5d39aa1937e77d4fd44319018.tar.gz
changed symbols for float/tiled mode, added mouse-driven mode toggle to buttonpress()
Diffstat (limited to 'event.c')
-rw-r--r--event.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/event.c b/event.c
index 86fb43b..35cd4f9 100644
--- a/event.c
+++ b/event.c
@@ -106,16 +106,18 @@ buttonpress(XEvent *e)
 
 	if(barwin == ev->window) {
 		if(ev->x < modew)
-			return;
-		x = modew;
-		for(a.i = 0; a.i < ntags; a.i++) {
-			x += textw(tags[a.i]);
-			if(ev->x < x) {
-				if(ev->button == Button1)
-					view(&a);
-				else if(ev->button == Button3)
-					toggleview(&a);
-				return;
+			togglemode(NULL);
+		else {
+			x = modew;
+			for(a.i = 0; a.i < ntags; a.i++) {
+				x += textw(tags[a.i]);
+				if(ev->x < x) {
+					if(ev->button == Button1)
+						view(&a);
+					else if(ev->button == Button3)
+						toggleview(&a);
+					return;
+				}
 			}
 		}
 	}
=4e01caf19cfbc798862e6b8b2dbd77328c8f99a2'>^
62cd83ba ^








f07bb12f ^





34a60763 ^
f07bb12f ^









34a60763 ^
f07bb12f ^
62cd83ba ^


f07bb12f ^








62cd83ba ^
f07bb12f ^


62cd83ba ^







f07bb12f ^




1cd06f3f ^
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