summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-26 22:41:31 +0000
committerDana Jansens <danakj@orodu.net>2007-05-26 22:41:31 +0000
commit306ea13177064e0d7512c49b78c868c37f717e3e (patch)
treea23c8da812504d4784b1a6689f7127673f8e6495
parenta4f868a195ce5b22d7965725b4c2f774f002cd98 (diff)
we set borderwidth to 0 so always give that to the client consistently
-rw-r--r--openbox/client.c10
1 files 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,