]> Dogcows Code - chaz/openbox/commitdiff
round 2 for this shit
authorDana Jansens <danakj@orodu.net>
Mon, 8 Sep 2003 18:05:42 +0000 (18:05 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 8 Sep 2003 18:05:42 +0000 (18:05 +0000)
openbox/client.c

index 23348d510981088eeeb7de8b80a86725b6584490..197be7cc6af662eafa2496bf7034ce550f4e9b6a 100644 (file)
@@ -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);
This page took 0.028249 seconds and 4 git commands to generate.