about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'event.c')
-rw-r--r--event.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/event.c b/event.c
index d200a8d..b8036fc 100644
--- a/event.c
+++ b/event.c
@@ -156,14 +156,14 @@ buttonpress(XEvent *e) {
 		focus(c);
 		if(CLEANMASK(ev->state) != MODKEY)
 			return;
-		if(ev->button == Button1 && (lt->arrange == dofloat || c->isfloat)) {
+		if(ev->button == Button1 && (lt->arrange == swim || c->swimming)) {
 			restack();
 			movemouse(c);
 		}
 		else if(ev->button == Button2)
 			zoom(NULL);
 		else if(ev->button == Button3
-		&& (lt->arrange == dofloat || c->isfloat) && !c->isfixed)
+		&& (lt->arrange == swim || c->swimming) && !c->isfixed)
 		{
 			restack();
 			resizemouse(c);
@@ -181,7 +181,7 @@ configurerequest(XEvent *e) {
 		c->ismax = False;
 		if(ev->value_mask & CWBorderWidth)
 			c->border = ev->border_width;
-		if(c->isfixed || c->isfloat || (lt->arrange == dofloat)) {
+		if(c->isfixed || c->swimming || (lt->arrange == swim)) {
 			if(ev->value_mask & CWX)
 				c->x = ev->x;
 			if(ev->value_mask & CWY)
@@ -309,7 +309,7 @@ propertynotify(XEvent *e) {
 			default: break;
 			case XA_WM_TRANSIENT_FOR:
 				XGetTransientForHint(dpy, c->win, &trans);
-				if(!c->isfloat && (c->isfloat = (trans != 0)))
+				if(!c->swimming && (c->swimming = (getclient(trans) != NULL)))
 					lt->arrange();
 				break;
 			case XA_WM_NORMAL_HINTS:
6b42204ef1b44464ffb71340de6d445b8240c27'>e6b42204 ^
21a6f553 ^

e6b42204 ^
49a99383 ^


71e4f381 ^


67aeff89 ^
c5a3f655 ^
91dc5814 ^

c5a3f655 ^
71e4f381 ^
d94821d3 ^


7b2d39b8 ^
4e70cac9 ^


adc92f49 ^
73744d09 ^
d94821d3 ^
8dc3c85a ^


71e4f381 ^
c9093dbb ^

91dc5814 ^
9d7d99fe ^
c5a3f655 ^
9d7d99fe ^
91dc5814 ^
492fb278 ^
71e4f381 ^
4b57c101 ^



71e4f381 ^
c95648c9 ^
91dc5814 ^
cec5ef31 ^
c5a3f655 ^
cec5ef31 ^
c5a3f655 ^
b8d613e7 ^
1a1a1671 ^
91dc5814 ^


1a1a1671 ^
c5a3f655 ^
91dc5814 ^




01b72aa0 ^

91dc5814 ^

01b72aa0 ^
e2b55208 ^
01b72aa0 ^

e2b55208 ^
91dc5814 ^


c5a3f655 ^
eea6659a ^
c5a3f655 ^
86a12476 ^
1a1a1671 ^
91dc5814 ^
eea6659a ^


18d5bab2 ^

91dc5814 ^

71418907 ^

91dc5814 ^

5462619d ^
c79b93ca ^
307745bc ^
71e4f381 ^



6f65b65f ^

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