]> Dogcows Code - chaz/openbox/blobdiff - plugins/placement/placement.c
history placement works. loads. saves. woot.
[chaz/openbox] / plugins / placement / placement.c
index d6011132f12014ff151b05e0a3b6bbda9d21ab41..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,7 +37,8 @@ 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;
 
     if (!place_history(e->data.c.client))
         place_random(e->data.c.client);
This page took 0.026012 seconds and 4 git commands to generate.