From 2e529e3ff3db902cdf0c7b1fbf796ea2372a299b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 26 May 2007 22:55:13 +0000 Subject: don't change clients' borders --- openbox/frame.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'openbox/frame.c') 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 -- cgit v1.2.3