]> Dogcows Code - chaz/openbox/blobdiff - plugins/placement/placement.c
history placement works. loads. saves. woot.
[chaz/openbox] / plugins / placement / placement.c
index 8a5d995a620735ad2ee33ef992cd76d792ad0e95..2627eb84358fd27fea6a808ddf22184cb970b168 100644 (file)
@@ -14,6 +14,8 @@ static void place_random(Client *c)
     int x, y;
     Rect *area;
 
+    if (ob_state == State_Starting) return;
+
     area = screen_area(c->desktop);
 
     l = area->x;
@@ -35,8 +37,6 @@ static void event(ObEvent *e, void *foo)
 {
     g_assert(e->type == Event_Client_New);
 
-    if (ob_state == State_Starting) return;
-
     /* requested a position */
     if (e->data.c.client->positioned) return;
 
This page took 0.027029 seconds and 4 git commands to generate.