client_get_state(self);
client_get_shaped(self);
- g_message("self->iconic %d", self->iconic);
-
client_get_mwm_hints(self);
client_get_type(self);/* this can change the mwmhints for special cases */
{
/* these are in a carefully crafted order.. */
- g_message("self->iconic %d", self->iconic);
if (self->iconic) {
self->iconic = FALSE;
client_iconify(self, TRUE, FALSE);
/* 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) {
}
/* 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);