about summary refs log tree commit diff stats
path: root/client.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-13 13:39:33 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-13 13:39:33 +0100
commit71857b87ee4e5ce63594d062143e6ea78f842b0d (patch)
tree0227631c0e98178d885ebb1e539dd2437246e5a1 /client.c
parent6ba400ee0fa55d1178cac5f38f4465a1ddf30490 (diff)
downloaddwm-71857b87ee4e5ce63594d062143e6ea78f842b0d.tar.gz
simplified configurerequest
Diffstat (limited to 'client.c')
-rw-r--r--client.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/client.c b/client.c
index e37b9e6..b9c519b 100644
--- a/client.c
+++ b/client.c
@@ -69,19 +69,20 @@ xerrordummy(Display *dsply, XErrorEvent *ee) {
 
 void
 configure(Client *c) {
-	XEvent synev;
+	XConfigureEvent ce;
 
-	synev.type = ConfigureNotify;
-	synev.xconfigure.display = dpy;
-	synev.xconfigure.event = c->win;
-	synev.xconfigure.window = c->win;
-	synev.xconfigure.x = c->x;
-	synev.xconfigure.y = c->y;
-	synev.xconfigure.width = c->w;
-	synev.xconfigure.height = c->h;
-	synev.xconfigure.border_width = c->border;
-	synev.xconfigure.above = None;
-	XSendEvent(dpy, c->win, True, NoEventMask, &synev);
+	ce.type = ConfigureNotify;
+	ce.display = dpy;
+	ce.event = c->win;
+	ce.window = c->win;
+	ce.x = c->x;
+	ce.y = c->y;
+	ce.width = c->w;
+	ce.height = c->h;
+	ce.border_width = c->border;
+	ce.above = None;
+	ce.override_redirect = False;
+	XSendEvent(dpy, c->win, False, StructureNotifyMask, (XEvent *)&ce);
 }
 
 void
13:51:25 -0700 2183 - environment + external editor using tmux' href='/akkartik/mu/commit/082persist.cc?h=main&id=fa94f4d92340f001560b16dd0c2e5681ca5db031'>fa94f4d9 ^
5c7ed3d6 ^
cfb142b9 ^
5c7ed3d6 ^



13ba3def ^

























96db91f8 ^

e4630643 ^

aa088845 ^
48e40252 ^














614ea44b ^
de92036d ^
13ba3def ^

5aa38b52 ^
13ba3def ^
fc4a98dc ^

13ba3def ^
35064671 ^
13ba3def ^

5aa38b52 ^





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