]> Dogcows Code - chaz/openbox/commitdiff
fix ooffice (and all stupid windows that use static gravity)
authorDana Jansens <danakj@orodu.net>
Thu, 31 May 2007 21:33:51 +0000 (21:33 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 31 May 2007 21:33:51 +0000 (21:33 +0000)
openbox/frame.c

index 473bdd07e091b21a1514e13ef98111ab79ddfc39..0192943f75b55ed6c1169c78dde48bab0da03a78 100644 (file)
@@ -741,10 +741,6 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
                    self->size.top + self->size.bottom));
 
     if ((moved || resized) && !fake) {
-        /* when the client has StaticGravity, it likes to move around. */
-        XMoveWindow(ob_display, self->client->window,
-                    self->size.left, self->size.top);
-
         /* find the new coordinates, done after setting the frame.size, for
            frame_client_gravity. */
         self->area.x = self->client->area.x;
@@ -768,6 +764,10 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
                               self->area.width,
                               self->area.height);
 
+        /* when the client has StaticGravity, it likes to move around. */
+        XMoveWindow(ob_display, self->client->window,
+                    self->size.left, self->size.top);
+
         if (resized) {
             framerender_frame(self);
             frame_adjust_shape(self);
This page took 0.031182 seconds and 4 git commands to generate.