diff options
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) { | |||
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | void | 83 | void |
| 84 | configure(Client *c) { | ||
| 85 | XEvent synev; | ||
| 86 | |||
| 87 | synev.type = ConfigureNotify; | ||
| 88 | synev.xconfigure.display = dpy; | ||
| 89 | synev.xconfigure.event = c->win; | ||
| 90 | synev.xconfigure.window = c->win; | ||
| 91 | synev.xconfigure.x = c->x; | ||
| 92 | synev.xconfigure.y = c->y; | ||
| 93 | synev.xconfigure.width = c->w; | ||
| 94 | synev.xconfigure.height = c->h; | ||
| 95 | synev.xconfigure.border_width = c->border; | ||
| 96 | synev.xconfigure.above = None; | ||
| 97 | XSendEvent(dpy, c->win, True, NoEventMask, &synev); | ||
| 98 | } | ||
| 99 | |||
| 100 | void | ||
| 84 | focus(Client *c) { | 101 | focus(Client *c) { |
| 85 | Client *old; | 102 | Client *old; |
| 86 | 103 | ||
| @@ -299,6 +316,7 @@ resize(Client *c, Bool sizehints, Corner sticky) { | |||
| 299 | else | 316 | else |
| 300 | wc.border_width = 1; | 317 | wc.border_width = 1; |
| 301 | XConfigureWindow(dpy, c->win, CWX | CWY | CWWidth | CWHeight | CWBorderWidth, &wc); | 318 | XConfigureWindow(dpy, c->win, CWX | CWY | CWWidth | CWHeight | CWBorderWidth, &wc); |
| 319 | configure(c); | ||
| 302 | XSync(dpy, False); | 320 | XSync(dpy, False); |
| 303 | } | 321 | } |
| 304 | 322 | ||
