From 1f0f7820cb5e07b4603cc5cba9f97ad31faf75bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 15 Dec 2023 15:50:29 +0100 Subject: [PATCH] [gtk3/wayland] Only request v2 of xdg_wm_base. This fixes potential runtime crashes in some somewhat unlikely configurations, like a modern compositor but gtk built against an old wayland protocols version. We only need v2 for the tiling fixes, so request that. --- gdk/wayland/gdkdisplay-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c index 0753d70d50..bd35fea4dd 100644 --- a/gdk/wayland/gdkdisplay-wayland.c +++ b/gdk/wayland/gdkdisplay-wayland.c @@ -653,7 +653,7 @@ _gdk_wayland_display_open (const gchar *display_name) wl_registry_bind (display_wayland->wl_registry, display_wayland->xdg_wm_base_id, &xdg_wm_base_interface, - MIN (display_wayland->xdg_wm_base_version, 6)); + MIN (display_wayland->xdg_wm_base_version, 2)); xdg_wm_base_add_listener (display_wayland->xdg_wm_base, &xdg_wm_base_listener, display_wayland);