mirror of
https://github.com/brl/mutter.git
synced 2025-01-13 13:12:28 +00:00
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:
parent
2279f40e17
commit
f68b1ff030
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user