diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-18 20:09:16 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-18 20:09:16 +0000 |
| commit | abde4bc153b0b79b770506e2e35e36fcb1e32dc3 (patch) | |
| tree | 598034f9148a18cbea0f78b217fc0ba015290ac6 /openbox/client.c | |
| parent | 2bd406a0a5c1db5e9d72c4947a234f2399a4125c (diff) | |
dont split client requested resizes into 2 events, thanks to manmower for this idea
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/openbox/client.c b/openbox/client.c index e77ad7b8..ab37bb65 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1960,8 +1960,8 @@ void client_configure_full(ObClient *self, ObCorner anchor, (resized && config_redraw_resize)))); /* if the client is enlarging, the resize the client before the frame */ - if (send_resize_client && (w > oldw || h > oldh)) - XResizeWindow(ob_display, self->window, MAX(w, oldw), MAX(h, oldh)); + if (!user || (send_resize_client && (w > oldw || h > oldh))) + XResizeWindow(ob_display, self->window, MAX(w, oldw), MAX(h, oldh)); /* move/resize the frame to match the request */ if (self->frame) { @@ -1991,12 +1991,12 @@ void client_configure_full(ObClient *self, ObCorner anchor, event.xconfigure.override_redirect = FALSE; XSendEvent(event.xconfigure.display, event.xconfigure.window, FALSE, StructureNotifyMask, &event); - } + } } /* if the client is shrinking, then resize the frame before the client */ - if (send_resize_client && (w <= oldw || h <= oldh)) - XResizeWindow(ob_display, self->window, w, h); + if (user && (send_resize_client && (w <= oldw || h <= oldh))) + XResizeWindow(ob_display, self->window, w, h); XFlush(ob_display); } |
