X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fclient.c;h=bebd8949dc6756167dfee2d88d9a3c1a122b620f;hb=0d84c43d2a02acf5d2f0159e8cf54fe85f3755cc;hp=7d20abb923596eaafccee0da98b7a5726525ad26;hpb=3b14b587ef8131cbeb2afb2c11240f50c5f5d02b;p=chaz%2Fopenbox diff --git a/openbox/client.c b/openbox/client.c index 7d20abb9..bebd8949 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,8 @@ 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); + if (moved || resized) + engine_frame_adjust_area(self->frame, moved, resized); if (moved) { if (!user || final) { @@ -1630,7 +1631,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) @@ -1905,8 +1906,6 @@ gboolean client_focus(Client *self) } } - g_message("** focusing %lx", self->window); - if (self->can_focus) XSetInputFocus(ob_display, self->window, RevertToNone, CurrentTime);