diff options
author | Scott Balneaves <[email protected]> | 2013-05-17 14:05:54 -0500 |
---|---|---|
committer | Scott Balneaves <[email protected]> | 2013-05-17 14:05:54 -0500 |
commit | 749fe7090053afe610914aee368028bce06fd666 (patch) | |
tree | 120f5dc1df6b68897ae8d131643a8d444e93aa79 /src/core/place.c | |
parent | 99113c80a6c3ba2c0686ee9ebeb748953e5e5354 (diff) | |
download | marco-749fe7090053afe610914aee368028bce06fd666.tar.bz2 marco-749fe7090053afe610914aee368028bce06fd666.tar.xz |
Closes #44
Diffstat (limited to 'src/core/place.c')
-rw-r--r-- | src/core/place.c | 4 |
1 files 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 |