X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fframe.c;h=780bc23d1302fe4caa0b65c7e89c9c87f8e01123;hb=47986dcd9cb4bc9c23012a52bb6bcd21d62954f1;hp=f788255cd4665694cc54375ee9a076ddb11261d3;hpb=23f9ae2768f5c57af64890e4695b74fcef7b31d1;p=chaz%2Fopenbox diff --git a/openbox/frame.c b/openbox/frame.c index f788255c..780bc23d 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -695,7 +695,9 @@ void frame_adjust_area(ObFrame *self, gboolean moved, self->cbwidth_y); /* when the client has StaticGravity, it likes to move around. */ - XMoveWindow(ob_display, self->client->window, 0, 0); + XMoveWindow(ob_display, self->client->window, + -self->client->border_width, + -self->client->border_width); } } @@ -848,7 +850,8 @@ void frame_grab_client(ObFrame *self) */ /* reparent the client to the frame */ - XReparentWindow(ob_display, self->client->window, self->plate, 0, 0); + XReparentWindow(ob_display, self->client->window, self->plate, + -self->client->border_width, -self->client->border_width); /* When reparenting the client window, it is usually not mapped yet, since