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-10 10:16:12 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-10 10:16:12 +0200
commitb79b5facb104a653314577bb7f15824396b9e94b (patch)
treea145b85cb026c7965b27b3db9ae3bcf0fdaa63bb /event.c
parentc53f0fca912e05cddcfbf79d99678b16d183c67d (diff)
downloaddwm-b79b5facb104a653314577bb7f15824396b9e94b.tar.gz
disallow zoom on maximized clients
Diffstat (limited to 'event.c')
-rw-r--r--event.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/event.c b/event.c
index b6beed5..0f984f2 100644
--- a/event.c
+++ b/event.c
@@ -127,15 +127,14 @@ buttonpress(XEvent *e)
 		default:
 			break;
 		case Button1:
-			if(!c->ismax && (arrange == dofloat || c->isfloat)) {
-				higher(c);
-				movemouse(c);
+			if(!c->ismax) {
+				if(arrange == dofloat || c->isfloat) {
+					higher(c);
+					movemouse(c);
+				}
+				else
+					zoom(NULL);
 			}
-			else
-				zoom(NULL);
-			break;
-		case Button2:
-			lower(c);
 			break;
 		case Button3:
 			if(!c->ismax && (arrange == dofloat || c->isfloat)) {
@@ -225,7 +224,7 @@ enternotify(XEvent *e)
 	Client *c;
 	XCrossingEvent *ev = &e->xcrossing;
 
-	if(ev->detail == NotifyInferior)
+	if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
 		return;
 
 	if((c = getclient(ev->window)) || (c = getctitle(ev->window)))
t;hut@lavabit.com> 2010-08-28 08:30:52 +0200 committer hut <hut@lavabit.com> 2010-08-28 08:30:52 +0200 Changed default config dir to $XDG_CONFIG_HOME/ranger' href='/akspecs/ranger/commit/ranger.py?h=v1.7.2&id=a2853ab67f2e471d9a34b4c528db6ee2024ef874'>a2853ab6 ^
cba63cf3 ^
ce9e6572 ^
8fa87054 ^


a66c4a26 ^

f027adc0 ^
08f08fb9 ^
d8084b41 ^
08f08fb9 ^
d8084b41 ^

08f08fb9 ^





cba63cf3 ^
3de15ddd ^

d8084b41 ^



d36c43ff ^
d8084b41 ^

cba63cf3 ^
b4250dbc ^

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