From 749fe7090053afe610914aee368028bce06fd666 Mon Sep 17 00:00:00 2001 From: Scott Balneaves Date: Fri, 17 May 2013 14:05:54 -0500 Subject: Closes #44 --- src/core/place.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/place.c b/src/core/place.c index 7d1082b7..feec8b40 100644 --- a/src/core/place.c +++ b/src/core/place.c @@ -491,8 +491,8 @@ static void center_rect_in_area (MetaRectangle *rect, MetaRectangle *work_area) { - rect->x = (work_area->width - rect->width) / 2; - rect->y = (work_area->height - rect->height) / 2; + rect->x = work_area->x + ((work_area->width - rect->width) / 2); + rect->y = work_area->y + ((work_area->height - rect->height) / 2); } /* Find the leftmost, then topmost, empty area on the workspace -- cgit v1.2.1