X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fframe.c;h=8feef931b4200674586f94027a2d8b4ddc1c0b53;hb=e84fb1b052584b83947715d8ae4ec5d8afd201e7;hp=f12dbfb2a72cd595faf5dc7db349f8e4bff6fdc6;hpb=55d2916c1e24e021d9b9692d2373dc4afff4c5c2;p=chaz%2Fopenbox diff --git a/openbox/frame.c b/openbox/frame.c index f12dbfb2..8feef931 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -442,11 +442,9 @@ void frame_adjust_area(ObFrame *self, gboolean moved, self->client->area.height + self->cbwidth_y * 2); - /* move and resize the plate */ - XMoveResizeWindow(ob_display, self->plate, - self->cbwidth_x, self->cbwidth_y, - self->client->area.width, - self->client->area.height); + /* move the plate */ + XMoveWindow(ob_display, self->plate, + self->cbwidth_x, self->cbwidth_y); /* when the client has StaticGravity, it likes to move around. */ XMoveWindow(ob_display, self->client->window, 0, 0); @@ -511,6 +509,13 @@ void frame_adjust_area(ObFrame *self, gboolean moved, ob_rr_theme->label_height); } +void frame_adjust_client_area(ObFrame *self) +{ + /* resize the plate */ + XResizeWindow(ob_display, self->plate, + self->client->area.width, self->client->area.height); +} + void frame_adjust_state(ObFrame *self) { framerender_frame(self);