X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fplace.c;h=d290be3db2289805579a87a6c39f3020a0a6b23b;hb=355981bf14a888b310be40018f9b7d35bc05e606;hp=845becdb93d67fe74036f37757aa28de7c664458;hpb=e048751f914d16cb6346f7e7ca6532eaae44ce31;p=chaz%2Fopenbox diff --git a/openbox/place.c b/openbox/place.c index 845becdb..d290be3d 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -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; }