re-factor parts of mouse move/resize bit to shrink and make more

readable; no behavior change

ok oga@
This commit is contained in:
okan
2009-06-17 12:45:01 +00:00
parent d7589ca80b
commit 61f841ea58
2 changed files with 24 additions and 34 deletions

View File

@@ -66,11 +66,6 @@ client_new(Window win, struct screen_ctx *sc, int mapped)
cc->size = XAllocSizeHints();
XGetWMNormalHints(X_Dpy, cc->win, cc->size, &tmp);
if (cc->size->width_inc == 0)
cc->size->width_inc = 1;
if (cc->size->height_inc == 0)
cc->size->height_inc = 1;
if (cc->size->flags & PBaseSize) {
cc->geom.min_dx = cc->size->base_width;
cc->geom.min_dy = cc->size->base_height;