From a809fab890524666d25aeff882a1c23ddfc72767 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 10 Jul 2026 10:15:00 +0200 Subject: [PATCH] Wayland: explicit which version of the "GTK Shell" protocol is used. --- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 9ee4d4ecf..241a36eaa 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -1362,7 +1362,7 @@ static void registry_handle_global(void *user_data, struct wl_registry *wl_regis ((pair_bool*)user_data)->found_gtk_shell = true; //fprintf(stderr, "Running the Mutter compositor\n"); scr_driver->seat->gtk_shell = (struct gtk_shell1*)wl_registry_bind(wl_registry, id, - >k_shell1_interface, version); + >k_shell1_interface, fl_min(version, 5)); } else if (strcmp(interface, "weston_desktop_shell") == 0) { Fl_Wayland_Screen_Driver::compositor = Fl_Wayland_Screen_Driver::WESTON; //fprintf(stderr, "Running the Weston compositor\n");