]> Dogcows Code - chaz/openbox/blobdiff - openbox/place.c
child/parents don't get included in tests for occluding/occluded windows, because...
[chaz/openbox] / openbox / place.c
index 845becdb93d67fe74036f37757aa28de7c664458..d290be3db2289805579a87a6c39f3020a0a6b23b 100644 (file)
@@ -473,7 +473,11 @@ gboolean place_client(ObClient *client, gint *x, gint *y,
 {
     gboolean ret;
 
-    if (client->positioned)
+    /* per-app settings override program specified position
+     * but not user specified */
+    if ((client->positioned & USPosition) ||
+        ((client->positioned & PPosition) && !(settings && settings->pos_given))
+        )
         return FALSE;
 
     /* try a number of methods */
@@ -486,7 +490,6 @@ gboolean place_client(ObClient *client, gint *x, gint *y,
     g_assert(ret);
 
     /* get where the client should be */
-    frame_frame_gravity(client->frame, x, y,
-                        client->area.width, client->area.height);
+    frame_frame_gravity(client->frame, x, y);
     return ret;
 }
This page took 0.020529 seconds and 4 git commands to generate.