X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.c;h=197be7cc6af662eafa2496bf7034ce550f4e9b6a;hb=3fa11ec62b2e22acba071df4dad31de6665ad152;hp=aa3174f73e3aa91084c98b96a6c0e3632989b2ca;hpb=5bebe5fbf8ab53f114ecc628d4150e1c508d788b;p=chaz%2Fopenbox diff --git a/openbox/client.c b/openbox/client.c index aa3174f7..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,8 +1966,10 @@ 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); } void client_fullscreen(ObClient *self, gboolean fs, gboolean savearea)