summaryrefslogtreecommitdiff
path: root/src/constraints.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/constraints.c')
-rw-r--r--src/constraints.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/constraints.c b/src/constraints.c
index 4e88028..51941aa 100644
--- a/src/constraints.c
+++ b/src/constraints.c
@@ -471,10 +471,6 @@ place_window_if_needed(MetaWindow *window,
.083 * info->work_area_xinerama.height;
}
- /* maximization may have changed frame geometry */
- if (window->frame && !window->fullscreen)
- meta_frame_calc_geometry (window->frame, info->fgeom);
-
if (window->maximize_horizontally_after_placement &&
window->maximize_vertically_after_placement)
meta_window_maximize_internal (window,
@@ -496,6 +492,10 @@ place_window_if_needed(MetaWindow *window,
- info->fgeom->top_height - info->fgeom->bottom_height;
}
+ /* maximization may have changed frame geometry */
+ if (window->frame && !window->fullscreen)
+ meta_frame_calc_geometry (window->frame, info->fgeom);
+
window->maximize_horizontally_after_placement = FALSE;
window->maximize_vertically_after_placement = FALSE;
}