diff options
author | Anselm R. Garbe <arg@suckless.org> | 2007-02-13 13:39:33 +0100 |
---|---|---|
committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-13 13:39:33 +0100 |
commit | 71857b87ee4e5ce63594d062143e6ea78f842b0d (patch) | |
tree | 0227631c0e98178d885ebb1e539dd2437246e5a1 /client.c | |
parent | 6ba400ee0fa55d1178cac5f38f4465a1ddf30490 (diff) | |
download | dwm-71857b87ee4e5ce63594d062143e6ea78f842b0d.tar.gz |
simplified configurerequest
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 25 |
1 files changed, 13 insertions, 12 deletions
@@ -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 |