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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/event.c b/event.c
index c41c975..748987e 100644
--- a/event.c
+++ b/event.c
@@ -174,6 +174,8 @@ configurerequest(XEvent *e) {
 
 	if((c = getclient(ev->window))) {
 		c->ismax = False;
+		if(ev->value_mask & CWBorderWidth)
+			c->border = ev->border_width;
 		if(c->isfixed || c->isfloating || (lt->arrange == floating)) {
 			if(ev->value_mask & CWX)
 				c->x = ev->x;
@@ -190,11 +192,9 @@ configurerequest(XEvent *e) {
 				XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
 		}
 		else {
-			if(ev->value_mask & CWBorderWidth)
-				c->border = ev->border_width;
 			configure(c);
-			c->border = BORDERPX;
 		}
+		c->border = BORDERPX;
 	}
 	else {
 		wc.x = ev->x;
ut@lavabit.com> 2010-09-22 00:39:07 +0200 committer hut <hut@lavabit.com> 2010-09-22 00:39:07 +0200 simplify ranger.py' href='/akspecs/ranger/commit/ranger.py?h=v1.5.5&id=cba63cf3683d4ca532efd179005e2ac1f6c60e38'>cba63cf3 ^
471fc680 ^
cba63cf3 ^
a2853ab6 ^
cba63cf3 ^
ce9e6572 ^
8fa87054 ^


a66c4a26 ^

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

08f08fb9 ^





cba63cf3 ^
3de15ddd ^

d8084b41 ^
24e68318 ^
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