commit 5372f5f0c1c26ea222e9cec72f112c4bad4794e2
Author:     Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
AuthorDate: Sun Feb 8 10:12:28 2015 +0100
Commit:     Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
CommitDate: Tue Feb 10 14:40:41 2015 +0100

    wayland: Do not require latest wl_seat
    
    Some compositors might not offer wl_seat 4 resulting in GTK+ clients not
    working on that compositor.
    
    Reviewed-by: Daniel Stone <daniels@collabora.com>

diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
index 007d37a..0be9ab6 100644
--- a/gdk/wayland/gdkdisplay-wayland.c
+++ b/gdk/wayland/gdkdisplay-wayland.c
@@ -172,7 +172,7 @@ gdk_registry_handle_global(void *data, struct wl_registry *registry, uint32_t id
       wl_registry_bind(display_wayland->wl_registry, id, &wl_output_interface, MIN (version, 2));
     _gdk_wayland_screen_add_output(display_wayland->screen, id, output, MIN (version, 2));
   } else if (strcmp(interface, "wl_seat") == 0) {
-    seat = wl_registry_bind(display_wayland->wl_registry, id, &wl_seat_interface, 4);
+    seat = wl_registry_bind(display_wayland->wl_registry, id, &wl_seat_interface, MIN (version, 4));
     _gdk_wayland_device_manager_add_seat (gdk_display->device_manager, id, seat);
   } else if (strcmp(interface, "wl_data_device_manager") == 0) {
       display_wayland->data_device_manager =
