diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-08 18:05:42 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-08 18:05:42 +0000 |
| commit | 3fa11ec62b2e22acba071df4dad31de6665ad152 (patch) | |
| tree | 8cb44b3b6d1849fdbca3617c0fb57a202d9267c8 | |
| parent | 4c0adb1f2b05d1b3d3325f468d159731f511db3c (diff) | |
round 2 for this shit
| -rw-r--r-- | openbox/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/client.c b/openbox/client.c index 23348d51..197be7cc 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1932,7 +1932,7 @@ void client_configure_full(ObClient *self, ObCorner anchor, /* 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, w, h); + XResizeWindow(ob_display, self->window, MAX(w, oldw), MAX(h, oldh)); /* move/resize the frame to match the request */ if (self->frame) { @@ -1966,7 +1966,7 @@ void client_configure_full(ObClient *self, ObCorner anchor, } /* if the client is shrinking, then resize the frame before the client */ - if (send_resize_client && (w <= oldw && h <= oldh)) + if (send_resize_client && (w <= oldw || h <= oldh)) XResizeWindow(ob_display, self->window, w, h); XFlush(ob_display); |
