+void
+update_size(Client *c)
+{
+ XSizeHints size;
+ long msize;
+ if(!XGetWMNormalHints(dpy, c->win, &size, &msize) || !size.flags)
+ size.flags = PSize;
+ c->flags = size.flags;
+ c->basew = size.base_width;
+ c->baseh = size.base_height;
+ c->incw = size.width_inc;
+ c->inch = size.height_inc;
+ c->maxw = size.max_width;
+ c->maxh = size.max_height;
+ c->minw = size.min_width;
+ c->minh = size.min_height;
+}
+