summaryrefslogtreecommitdiff
path: root/openbox/frame.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-26 22:55:13 +0000
committerDana Jansens <danakj@orodu.net>2007-05-26 22:55:13 +0000
commit2e529e3ff3db902cdf0c7b1fbf796ea2372a299b (patch)
tree9bb17d107b36745910b5ab8671141dd34e061822 /openbox/frame.c
parent306ea13177064e0d7512c49b78c868c37f717e3e (diff)
don't change clients' borders
Diffstat (limited to 'openbox/frame.c')
-rw-r--r--openbox/frame.c7
1 files changed, 5 insertions, 2 deletions
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