re-factor parts of mouse move/resize bit to shrink and make more
readable; no behavior change ok oga@
This commit is contained in:
5
client.c
5
client.c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user