summaryrefslogtreecommitdiff
path: root/openbox/place.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2008-02-02 16:50:55 -0500
committerDana Jansens <danakj@orodu.net>2008-02-03 18:37:37 -0500
commitdeb0aa720a4feda3b52c17e16ed7324c61dc331a (patch)
tree8525e428a854f701945d798a13a72386f7f05b9b /openbox/place.c
parenta19f2f8bc9964b89a500a2c5aac0b8d3a3dc2ff4 (diff)
allow you to force the position of windows with rc.xml's per-app settings with the force="yes" attribute
Diffstat (limited to 'openbox/place.c')
-rw-r--r--openbox/place.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbox/place.c b/openbox/place.c
index 81fb9752..45d7f07f 100644
--- a/openbox/place.c
+++ b/openbox/place.c
@@ -489,8 +489,9 @@ gboolean place_client(ObClient *client, gint *x, gint *y,
gboolean userplaced = FALSE;
/* per-app settings override program specified position
- * but not user specified */
- if ((client->positioned & USPosition) ||
+ * but not user specified, unless pos_force is enabled */
+ if (((client->positioned & USPosition) &&
+ !(settings && settings->pos_given && settings->pos_force)) ||
((client->positioned & PPosition) &&
!(settings && settings->pos_given)))
return FALSE;