From d2eec866ed50278965c7136f81f93f92abf6363b Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Wed, 31 Mar 2021 23:26:01 +0100 Subject: [PATCH] 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: --- src/wayland/meta-wayland-legacy-xdg-shell.c | 3 --- src/wayland/meta-wayland-xdg-shell.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/wayland/meta-wayland-legacy-xdg-shell.c b/src/wayland/meta-wayland-legacy-xdg-shell.c index af789ec2a..cf822bcb6 100644 --- a/src/wayland/meta-wayland-legacy-xdg-shell.c +++ b/src/wayland/meta-wayland-legacy-xdg-shell.c @@ -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); } diff --git a/src/wayland/meta-wayland-xdg-shell.c b/src/wayland/meta-wayland-xdg-shell.c index 62a5e786c..3b04ece83 100644 --- a/src/wayland/meta-wayland-xdg-shell.c +++ b/src/wayland/meta-wayland-xdg-shell.c @@ -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); }