static void xbtnmotion(XEvent* e)
{
XMotionEvent *ev = &e->xmotion;
+ while (XCheckTypedWindowEvent(X.disp, ev->window, ev->type, e))
+ {
+ /* Keep grabbing them till we have no more to grab */
+ }
+
Client* c = client_get(ev->window);
if (c && (ev->window == c->frame))
{
wc.sibling = ev->above;
wc.stack_mode = ev->detail;
XConfigureWindow(X.disp, ev->window, ev->value_mask, &wc);
+ Client* c = client_get(ev->window);
+ if (c && c->win == ev->window)
+ {
+ c->w = wc.width;
+ c->h = wc.height;
+ client_resize(c, 0, 0);
+ }
}
static void xmaprequest(XEvent* e)
XResizeWindow(X.disp, c->frame,
c->w + 2*BORDER_WIDTH,
c->h + 2*BORDER_WIDTH + TITLE_HEIGHT);
+ XSync(X.disp, False);
}
void client_close(Client* c)