diff options
author | arg@mmvi <unknown> | 2006-09-26 07:40:19 +0200 |
---|---|---|
committer | arg@mmvi <unknown> | 2006-09-26 07:40:19 +0200 |
commit | b4d53bf194f9f9214b6c79d397d723ba53663b4b (patch) | |
tree | b1335d83f27a3a8225dd59de955224db48a1f095 /client.c | |
parent | 67bc08d1b938842d27d976da9bbbc210b1f860b7 (diff) | |
download | dwm-b4d53bf194f9f9214b6c79d397d723ba53663b4b.tar.gz |
added configure(), but this doesn't really fix those frking broken SDL apps
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -81,6 +81,23 @@ ban(Client *c) { } void +configure(Client *c) { + XEvent synev; + + 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); +} + +void focus(Client *c) { Client *old; @@ -299,6 +316,7 @@ resize(Client *c, Bool sizehints, Corner sticky) { else wc.border_width = 1; XConfigureWindow(dpy, c->win, CWX | CWY | CWWidth | CWHeight | CWBorderWidth, &wc); + configure(c); XSync(dpy, False); } |