summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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