summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/constraints.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/constraints.c b/src/core/constraints.c
index 7c4d61ada..a9d983e04 100644
--- a/src/core/constraints.c
+++ b/src/core/constraints.c
@@ -465,7 +465,12 @@ place_window_if_needed(MetaWindow *window,
MetaWorkspace *cur_workspace;
const MetaMonitorInfo *monitor_info;
- meta_window_get_frame_rect (window, &placed_rect);
+ placed_rect = (MetaRectangle) {
+ .x = window->rect.x,
+ .y = window->rect.y,
+ .width = info->current.width,
+ .height = info->current.height
+ };
orig_rect = info->orig;