From 306ea13177064e0d7512c49b78c868c37f717e3e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 26 May 2007 22:41:31 +0000 Subject: [PATCH] we set borderwidth to 0 so always give that to the client consistently --- openbox/client.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openbox/client.c b/openbox/client.c index 9c679fee..3c6aee45 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -2912,11 +2912,11 @@ void client_configure(ObClient *self, gint x, gint y, gint w, gint h, { XEvent event; + /* we have reset the client to 0 border width, so don't include + it in these coords */ POINT_SET(self->root_pos, - self->frame->area.x + self->frame->size.left - - self->border_width, - self->frame->area.y + self->frame->size.top - - self->border_width); + self->frame->area.x + self->frame->size.left, + self->frame->area.y + self->frame->size.top); event.type = ConfigureNotify; event.xconfigure.display = ob_display; @@ -2931,7 +2931,7 @@ void client_configure(ObClient *self, gint x, gint y, gint w, gint h, event.xconfigure.y = self->root_pos.y; event.xconfigure.width = w; event.xconfigure.height = h; - event.xconfigure.border_width = self->border_width; + event.xconfigure.border_width = 0; event.xconfigure.above = self->frame->plate; event.xconfigure.override_redirect = FALSE; XSendEvent(event.xconfigure.display, event.xconfigure.window, -- 2.45.2