wayland: Allow to maximize windows by client regardless of constraints

A client request for maximizing itself should always be handled by mutter
by emitting a configure event with the native maximized resolution,
regardless of the client's own set limits. This also aligns the behavior by
allowing fixed-sized windows to go into fullscreen or maximized state.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1997>
This commit is contained in:
Christian Rauch 2021-03-31 23:26:01 +01:00 committed by Marge Bot
parent 3192b0239a
commit d2eec866ed
2 changed files with 0 additions and 6 deletions

View File

@ -403,9 +403,6 @@ zxdg_toplevel_v6_set_maximized (struct wl_client *client,
if (!window) if (!window)
return; return;
if (!window->has_maximize_func)
return;
meta_window_force_placement (window, TRUE); meta_window_force_placement (window, TRUE);
meta_window_maximize (window, META_MAXIMIZE_BOTH); meta_window_maximize (window, META_MAXIMIZE_BOTH);
} }

View File

@ -426,9 +426,6 @@ xdg_toplevel_set_maximized (struct wl_client *client,
if (!window) if (!window)
return; return;
if (!window->has_maximize_func)
return;
meta_window_force_placement (window, TRUE); meta_window_force_placement (window, TRUE);
meta_window_maximize (window, META_MAXIMIZE_BOTH); meta_window_maximize (window, META_MAXIMIZE_BOTH);
} }