From deb0aa720a4feda3b52c17e16ed7324c61dc331a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 2 Feb 2008 16:50:55 -0500 Subject: allow you to force the position of windows with rc.xml's per-app settings with the force="yes" attribute --- openbox/place.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'openbox/place.c') 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; -- cgit v1.2.3