summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/client.c b/client.c
index d5bc30e..87c2f76 100644
--- a/client.c
+++ b/client.c
@@ -81,6 +81,23 @@ ban(Client *c) {
81} 81}
82 82
83void 83void
84configure(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
100void
84focus(Client *c) { 101focus(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