summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorScott Balneaves <[email protected]>2013-05-17 14:05:54 -0500
committerScott Balneaves <[email protected]>2013-05-17 14:05:54 -0500
commit749fe7090053afe610914aee368028bce06fd666 (patch)
tree120f5dc1df6b68897ae8d131643a8d444e93aa79 /src/core
parent99113c80a6c3ba2c0686ee9ebeb748953e5e5354 (diff)
downloadmarco-749fe7090053afe610914aee368028bce06fd666.tar.bz2
marco-749fe7090053afe610914aee368028bce06fd666.tar.xz
Closes #44
Diffstat (limited to 'src/core')
-rw-r--r--src/core/place.c4
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