]> Dogcows Code - chaz/openbox/commitdiff
we set borderwidth to 0 so always give that to the client consistently
authorDana Jansens <danakj@orodu.net>
Sat, 26 May 2007 22:41:31 +0000 (22:41 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 26 May 2007 22:41:31 +0000 (22:41 +0000)
openbox/client.c

index 9c679fee9e2f9e3f56765be5f670e6c2c79ab119..3c6aee45ac3d3de50af2ee69c4a4e6c42ed6f31f 100644 (file)
@@ -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,
This page took 0.026782 seconds and 4 git commands to generate.