X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fplace.c;h=845becdb93d67fe74036f37757aa28de7c664458;hb=ae624a1487fd7db9291c4de1a3b2c34fcab89ef9;hp=adbb1f4b7a54dfc3c2e99a1859588c293418dc3a;hpb=c538ebf42282e904bc623adb219beb9bdf8408b4;p=chaz%2Fopenbox diff --git a/openbox/place.c b/openbox/place.c index adbb1f4b..845becdb 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -326,8 +326,12 @@ static gboolean place_nooverlap(ObClient *c, gint *x, gint *y) Rect *r = maxit->data; /* center it in the area */ - *x = r->x + (r->width - c->frame->area.width) / 2; - *y = r->y + (r->height - c->frame->area.height) / 2; + *x = r->x; + *y = r->y; + if (config_place_center) { + *x += (r->width - c->frame->area.width) / 2; + *y += (r->height - c->frame->area.height) / 2; + } ret = TRUE; }