mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 07:30:42 -05:00
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:
parent
3192b0239a
commit
d2eec866ed
@ -403,9 +403,6 @@ zxdg_toplevel_v6_set_maximized (struct wl_client *client,
|
||||
if (!window)
|
||||
return;
|
||||
|
||||
if (!window->has_maximize_func)
|
||||
return;
|
||||
|
||||
meta_window_force_placement (window, TRUE);
|
||||
meta_window_maximize (window, META_MAXIMIZE_BOTH);
|
||||
}
|
||||
|
@ -426,9 +426,6 @@ xdg_toplevel_set_maximized (struct wl_client *client,
|
||||
if (!window)
|
||||
return;
|
||||
|
||||
if (!window->has_maximize_func)
|
||||
return;
|
||||
|
||||
meta_window_force_placement (window, TRUE);
|
||||
meta_window_maximize (window, META_MAXIMIZE_BOTH);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user