]> Dogcows Code - chaz/openbox/commitdiff
merge r7699 from 3.4-working, (let per-app settings override program specified positi...
authorMikael Magnusson <mikachu@comhem.se>
Wed, 11 Jul 2007 00:39:14 +0000 (00:39 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Wed, 11 Jul 2007 00:39:14 +0000 (00:39 +0000)
openbox/place.c

index 6a210b0f6377e60770c34fa36e206d284d762c84..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 */
This page took 0.035873 seconds and 4 git commands to generate.