[mutter] wayland: Allow to maximize windows by client regardless of constraints



commit d2eec866ed50278965c7136f81f93f92abf6363b
Author: Christian Rauch <Rauch Christian gmx de>
Date:   Wed Mar 31 23:26:01 2021 +0100

    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>

 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 af789ec2a1..cf822bcb69 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 62a5e786ce..3b04ece830 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);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]