dont split client requested resizes into 2 events, thanks to manmower for this idea

This commit is contained in:
Dana Jansens 2003-09-18 20:09:16 +00:00
parent 2bd406a0a5
commit abde4bc153

View file

@ -1960,7 +1960,7 @@ void client_configure_full(ObClient *self, ObCorner anchor,
(resized && config_redraw_resize)))); (resized && config_redraw_resize))));
/* if the client is enlarging, the resize the client before the frame */ /* if the client is enlarging, the resize the client before the frame */
if (send_resize_client && (w > oldw || h > oldh)) if (!user || (send_resize_client && (w > oldw || h > oldh)))
XResizeWindow(ob_display, self->window, MAX(w, oldw), MAX(h, oldh)); XResizeWindow(ob_display, self->window, MAX(w, oldw), MAX(h, oldh));
/* move/resize the frame to match the request */ /* move/resize the frame to match the request */
@ -1995,7 +1995,7 @@ void client_configure_full(ObClient *self, ObCorner anchor,
} }
/* if the client is shrinking, then resize the frame before the client */ /* if the client is shrinking, then resize the frame before the client */
if (send_resize_client && (w <= oldw || h <= oldh)) if (user && (send_resize_client && (w <= oldw || h <= oldh)))
XResizeWindow(ob_display, self->window, w, h); XResizeWindow(ob_display, self->window, w, h);
XFlush(ob_display); XFlush(ob_display);