no center in the first smart-place

This commit is contained in:
Dana Jansens 2003-09-15 05:05:58 +00:00
parent 52e7547433
commit eb7229603e

View file

@ -162,8 +162,13 @@ static gboolean place_smart(ObClient *client, gint *x, gint *y,
if (r->width >= client->frame->area.width && if (r->width >= client->frame->area.width &&
r->height >= client->frame->area.height) { r->height >= client->frame->area.height) {
ret = TRUE; ret = TRUE;
*x = r->x + (r->width - client->frame->area.width) / 2; if (only_focused) {
*y = r->y + (r->height - client->frame->area.height) / 2; *x = r->x + (r->width - client->frame->area.width) / 2;
*y = r->y + (r->height - client->frame->area.height) / 2;
} else {
*x = r->x;
*y = r->y;
}
} }
} }