]> Dogcows Code - chaz/openbox/blobdiff - openbox/frame.c
don't change clients' borders
[chaz/openbox] / openbox / frame.c
index f788255cd4665694cc54375ee9a076ddb11261d3..780bc23d1302fe4caa0b65c7e89c9c87f8e01123 100644 (file)
@@ -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
This page took 0.020414 seconds and 4 git commands to generate.