only readjust the frame size when the client needs to be resized

This commit is contained in:
Dana Jansens 2007-05-26 23:12:29 +00:00
parent 5883164b19
commit a38012f2ff

View file

@ -400,6 +400,7 @@ void client_manage(Window window)
a.height -= self->frame->size.top + self->frame->size.bottom; a.height -= self->frame->size.top + self->frame->size.bottom;
/* fit the window inside the area */ /* fit the window inside the area */
if (self->area.width > a.width || self->area.height > a.height) {
self->area.width = MIN(self->area.width, a.width); self->area.width = MIN(self->area.width, a.width);
self->area.height = MIN(self->area.height, a.height); self->area.height = MIN(self->area.height, a.height);
@ -410,6 +411,7 @@ void client_manage(Window window)
frame_adjust_area(self->frame, FALSE, TRUE, FALSE); frame_adjust_area(self->frame, FALSE, TRUE, FALSE);
frame_adjust_client_area(self->frame); frame_adjust_client_area(self->frame);
} }
}
/* make sure the window is visible. */ /* make sure the window is visible. */
client_find_onscreen(self, &placex, &placey, client_find_onscreen(self, &placex, &placey,