if (self->frame) {
/* change the decors on the frame, and with more/less decorations,
we may also need to be repositioned */
- engine_frame_adjust_area(self->frame);
+ engine_frame_adjust_area(self->frame, TRUE, TRUE);
/* with new decor, the window's maximized size may change */
client_remaximize(self);
}
/* move/resize the frame to match the request */
if (self->frame) {
- engine_frame_adjust_area(self->frame);
+ if (moved || resized)
+ engine_frame_adjust_area(self->frame, moved, resized);
if (moved) {
if (!user || final) {
self->shaded = shade;
client_change_state(self);
/* resize the frame to just the titlebar */
- engine_frame_adjust_area(self->frame);
+ engine_frame_adjust_area(self->frame, FALSE, FALSE);
}
void client_close(Client *self)