constraints: Remove unnecessary if-check

One of those two must be TRUE because we're already inside exactly this
condition.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2873>
This commit is contained in:
Jonas Dreßler 2022-11-23 00:32:35 +01:00 committed by Marge Bot
parent 0dd170264d
commit 256bdba309

View File

@ -626,13 +626,12 @@ place_window_if_needed(MetaWindow *window,
*/ */
window->unconstrained_rect = info->current; window->unconstrained_rect = info->current;
if (window->maximize_horizontally_after_placement ||
window->maximize_vertically_after_placement)
meta_window_maximize_internal (window, meta_window_maximize_internal (window,
(window->maximize_horizontally_after_placement ? (window->maximize_horizontally_after_placement ?
META_MAXIMIZE_HORIZONTAL : 0) | META_MAXIMIZE_HORIZONTAL : 0) |
(window->maximize_vertically_after_placement ? (window->maximize_vertically_after_placement ?
META_MAXIMIZE_VERTICAL : 0), &info->current); META_MAXIMIZE_VERTICAL : 0),
&info->current);
window->maximize_horizontally_after_placement = FALSE; window->maximize_horizontally_after_placement = FALSE;
window->maximize_vertically_after_placement = FALSE; window->maximize_vertically_after_placement = FALSE;