mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
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:
parent
0dd170264d
commit
256bdba309
@ -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_MAXIMIZE_VERTICAL : 0),
|
||||
&info->current);
|
||||
|
||||
window->maximize_horizontally_after_placement = FALSE;
|
||||
window->maximize_vertically_after_placement = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user