+void
+resize(Client *c)
+{
+ XConfigureEvent e;
+
+ XMoveResizeWindow(dpy, c->win, c->r[RFloat].x, c->r[RFloat].y,
+ c->r[RFloat].width, c->r[RFloat].height);
+ e.type = ConfigureNotify;
+ e.event = c->win;
+ e.window = c->win;
+ e.x = c->r[RFloat].x;
+ e.y = c->r[RFloat].y;
+ e.width = c->r[RFloat].width;
+ e.height = c->r[RFloat].height;
+ e.border_width = c->border;
+ e.above = None;
+ e.override_redirect = False;
+ XSelectInput(dpy, c->win, CLIENT_MASK & ~StructureNotifyMask);
+ XSendEvent(dpy, c->win, False, StructureNotifyMask, (XEvent *)&e);
+ XSelectInput(dpy, c->win, CLIENT_MASK);
+ XFlush(dpy);
+}
+