diff --git a/src/core/constraints.c b/src/core/constraints.c index d9aa99392..5c04c847e 100644 --- a/src/core/constraints.c +++ b/src/core/constraints.c @@ -626,13 +626,12 @@ place_window_if_needed(MetaWindow *window, */ window->unconstrained_rect = info->current; - if (window->maximize_horizontally_after_placement || - window->maximize_vertically_after_placement) - meta_window_maximize_internal (window, - (window->maximize_horizontally_after_placement ? - META_MAXIMIZE_HORIZONTAL : 0 ) | - (window->maximize_vertically_after_placement ? - META_MAXIMIZE_VERTICAL : 0), &info->current); + meta_window_maximize_internal (window, + (window->maximize_horizontally_after_placement ? + META_MAXIMIZE_HORIZONTAL : 0) | + (window->maximize_vertically_after_placement ? + META_MAXIMIZE_VERTICAL : 0), + &info->current); window->maximize_horizontally_after_placement = FALSE; window->maximize_vertically_after_placement = FALSE;