From 436c85576e99f4df81273f8b510a94605e676cab Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 24 Mar 2003 19:52:09 +0000 Subject: only perform the actions necessary when performing an engine_adjust_area. pass whether the client has moved or resized --- openbox/client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'openbox/client.c') diff --git a/openbox/client.c b/openbox/client.c index 21c9ac7a..b717b914 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -822,7 +822,7 @@ void client_setup_decor_and_functions(Client *self) 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); } @@ -1390,7 +1390,7 @@ void client_configure(Client *self, Corner anchor, int x, int y, int w, int h, /* move/resize the frame to match the request */ if (self->frame) { - engine_frame_adjust_area(self->frame); + engine_frame_adjust_area(self->frame, moved, resized); if (moved) { if (!user || final) { @@ -1630,7 +1630,7 @@ void client_shade(Client *self, gboolean shade) 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) -- cgit v1.2.3