1
0
Fork 0

window: Allow can-maximize when size hints are exactly screen sized

This looks like a bug: There's no reason why windows which advertise
min-size hints that are exactly the size of the workarea should not be
allowed to maximize, so change the checks here to allow for that.

The commit message of 7f64d6b9 also makes the point that this was not
intended, as it says "larger than".

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2873>
This commit is contained in:
Jonas Dreßler 2022-08-27 11:58:51 +02:00 committed by Marge Bot
parent 2279f40e17
commit f68b1ff030

View file

@ -5645,8 +5645,8 @@ meta_window_recalc_features (MetaWindow *window)
meta_window_get_work_area_current_monitor (window, &work_area);
meta_window_frame_rect_to_client_rect (window, &work_area, &client_rect);
if (window->size_hints.min_width >= client_rect.width ||
window->size_hints.min_height >= client_rect.height)
if (window->size_hints.min_width > client_rect.width ||
window->size_hints.min_height > client_rect.height)
window->has_maximize_func = FALSE;
}