about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-08-04 18:25:40 +0200
committerarg@10ksloc.org <unknown>2006-08-04 18:25:40 +0200
commit6a39a496d06f5631a1617fe68729cbde4c24318c (patch)
treec36bd8c7fd1ab26ddad1ec59b8e2503abc7ec004
parent3d73084b5ef25bca354b32e049b2904aa9519c09 (diff)
downloaddwm-6a39a496d06f5631a1617fe68729cbde4c24318c.tar.gz
fixed xterm font change (all other related apps should work fine with this fix as well)
-rw-r--r--event.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/event.c b/event.c
index 88e1b10..a266ffa 100644
--- a/event.c
+++ b/event.c
@@ -156,22 +156,17 @@ configurerequest(XEvent *e)
 
 	if((c = getclient(ev->window))) {
 		gravitate(c, True);
-		if(c->isfloat) {
-			if(ev->value_mask & CWX)
-				c->x = ev->x;
-			if(ev->value_mask & CWY)
-				c->y = ev->y;
-			if(ev->value_mask & CWWidth)
-				c->w = ev->width;
-			if(ev->value_mask & CWHeight)
-				c->h = ev->height;
-		}
+		if(ev->value_mask & CWX)
+			c->x = ev->x;
+		if(ev->value_mask & CWY)
+			c->y = ev->y;
+		if(ev->value_mask & CWWidth)
+			c->w = ev->width;
+		if(ev->value_mask & CWHeight)
+			c->h = ev->height;
 		if(ev->value_mask & CWBorderWidth)
 			c->border = ev->border_width;
 		gravitate(c, False);
-
-		resize(c, True, TopLeft);
-
 		wc.x = c->x;
 		wc.y = c->y;
 		wc.width = c->w;
@@ -193,6 +188,9 @@ configurerequest(XEvent *e)
 			/* Send synthetic ConfigureNotify */
 			XSendEvent(dpy, c->win, True, NoEventMask, &synev);
 		}
+		XSync(dpy, False);
+		arrange(NULL);
+		drawall();
 	}
 	else {
 		wc.x = ev->x;
@@ -203,8 +201,8 @@ configurerequest(XEvent *e)
 		wc.sibling = ev->above;
 		wc.stack_mode = ev->detail;
 		XConfigureWindow(dpy, ev->window, ev->value_mask, &wc);
+		XSync(dpy, False);
 	}
-	XSync(dpy, False);
 }
 
 static void
evision' href='/ingrix/lynx-snapshots/blame/lynx_help/lynx-dev.html?id=bb5fd6e44e480f571bcb713788cc50eea44095e5'>^
7c7d8c95 ^
bc0fa578 ^
7c7d8c95 ^






bc0fa578 ^
7c7d8c95 ^
bc0fa578 ^



7c7d8c95 ^


bc0fa578 ^

7c7d8c95 ^
bc0fa578 ^

7c7d8c95 ^
bc0fa578 ^
7c7d8c95 ^






bc0fa578 ^
7c7d8c95 ^


bc0fa578 ^
7c7d8c95 ^
bc0fa578 ^
7c7d8c95 ^

bc0fa578 ^








7c7d8c95 ^
bc0fa578 ^




7c7d8c95 ^
bc0fa578 ^




7c7d8c95 ^


bc0fa578 ^






7c7d8c95 ^
bc0fa578 ^

7c7d8c95 ^

bc0fa578 ^


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