]> Dogcows Code - chaz/openbox/commitdiff
fix clients with static gravity
authorDana Jansens <danakj@orodu.net>
Tue, 29 May 2007 12:23:52 +0000 (12:23 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 29 May 2007 12:23:52 +0000 (12:23 +0000)
openbox/frame.c

index 124ffc051f85d60444b5802fa80e34d1471cd874..aef445aec46012261a998356b5bca777311bcfad 100644 (file)
@@ -716,10 +716,6 @@ void frame_adjust_area(ObFrame *self, gboolean moved,
                               self->size.left, self->size.top,
                               self->client->area.width,
                               self->client->area.height);
-
-            /* when the client has StaticGravity, it likes to move around. */
-            XMoveWindow(ob_display, self->client->window,
-                        self->size.left, self->size.top);
         }
     }
 
@@ -733,6 +729,10 @@ 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;
This page took 0.02526 seconds and 4 git commands to generate.