diff options
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) { | |||
| 69 | 69 | ||
| 70 | void | 70 | void |
| 71 | configure(Client *c) { | 71 | configure(Client *c) { |
| 72 | XEvent synev; | 72 | XConfigureEvent ce; |
| 73 | 73 | ||
| 74 | synev.type = ConfigureNotify; | 74 | ce.type = ConfigureNotify; |
| 75 | synev.xconfigure.display = dpy; | 75 | ce.display = dpy; |
| 76 | synev.xconfigure.event = c->win; | 76 | ce.event = c->win; |
| 77 | synev.xconfigure.window = c->win; | 77 | ce.window = c->win; |
| 78 | synev.xconfigure.x = c->x; | 78 | ce.x = c->x; |
| 79 | synev.xconfigure.y = c->y; | 79 | ce.y = c->y; |
| 80 | synev.xconfigure.width = c->w; | 80 | ce.width = c->w; |
| 81 | synev.xconfigure.height = c->h; | 81 | ce.height = c->h; |
| 82 | synev.xconfigure.border_width = c->border; | 82 | ce.border_width = c->border; |
| 83 | synev.xconfigure.above = None; | 83 | ce.above = None; |
| 84 | XSendEvent(dpy, c->win, True, NoEventMask, &synev); | 84 | ce.override_redirect = False; |
| 85 | XSendEvent(dpy, c->win, False, StructureNotifyMask, (XEvent *)&ce); | ||
| 85 | } | 86 | } |
| 86 | 87 | ||
| 87 | void | 88 | void |
