no center in the first smart-place
Dana Jansens danakj@orodu.net
1 files changed,
7 insertions(+),
2 deletions(-)
jump to
M
openbox/place.c
→
openbox/place.c
@@ -162,8 +162,13 @@ if (!ret) {
if (r->width >= client->frame->area.width && r->height >= client->frame->area.height) { ret = TRUE; - *x = r->x + (r->width - client->frame->area.width) / 2; - *y = r->y + (r->height - client->frame->area.height) / 2; + if (only_focused) { + *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; + } } }