round 2 for this shit
This commit is contained in:
parent
4c0adb1f2b
commit
3fa11ec62b
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue