From 125f0b0351b30115320dd5b6fa18dd3900ea46ea Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Sun, 12 Jul 2020 01:04:38 +0100 Subject: [PATCH] wayland: prevent resizing of fixed-size window Clients can set minimum and maximum to identical values to indicate a fixed-size window. A compositor can ignore these requests and thus a client has to ensure these limits. To support clients that do not ensure these size limits by themselves and to skip unnecessary function calls, we will prevent resizing requests by the client if a fixed-size has been requested. https://gitlab.gnome.org/GNOME/mutter/-/issues/1331 --- src/wayland/meta-wayland-xdg-shell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wayland/meta-wayland-xdg-shell.c b/src/wayland/meta-wayland-xdg-shell.c index f8ed98ec6..873c8025b 100644 --- a/src/wayland/meta-wayland-xdg-shell.c +++ b/src/wayland/meta-wayland-xdg-shell.c @@ -351,6 +351,9 @@ xdg_toplevel_resize (struct wl_client *client, if (!window) return; + if (!window->has_resize_func) + return; + if (!meta_wayland_seat_get_grab_info (seat, surface, serial, TRUE, &x, &y)) return;