From 6b951600aa4477a7fac0b60deedc852c79117715 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Tue, 12 Apr 2016 17:57:56 +0300 Subject: wayland: Bind interfaces correctly seat was binded with XDG_SHELL_VERSION_CURRENT constant that makes no sense. Use this constant in use_unstable_version call instead, and bind to the implemented versions. --- lib/renderers/wayland/registry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/renderers/wayland/registry.c') diff --git a/lib/renderers/wayland/registry.c b/lib/renderers/wayland/registry.c index e761633..5ade7a4 100644 --- a/lib/renderers/wayland/registry.c +++ b/lib/renderers/wayland/registry.c @@ -286,12 +286,12 @@ registry_handle_global(void *data, struct wl_registry *registry, uint32_t id, co wayland->compositor = wl_registry_bind(registry, id, &wl_compositor_interface, 1); } else if (strcmp(interface, "xdg_shell") == 0) { wayland->xdg_shell = wl_registry_bind(registry, id, &xdg_shell_interface, 1); - xdg_shell_use_unstable_version(wayland->xdg_shell, 4); + xdg_shell_use_unstable_version(wayland->xdg_shell, XDG_SHELL_VERSION_CURRENT); xdg_shell_add_listener(wayland->xdg_shell, &xdg_shell_listener, data); } else if (strcmp(interface, "wl_shell") == 0) { wayland->shell = wl_registry_bind(registry, id, &wl_shell_interface, 1); } else if (strcmp(interface, "wl_seat") == 0) { - wayland->seat = wl_registry_bind(registry, id, &wl_seat_interface, XDG_SHELL_VERSION_CURRENT); + wayland->seat = wl_registry_bind(registry, id, &wl_seat_interface, 1); wl_seat_add_listener(wayland->seat, &seat_listener, &wayland->input); } else if (strcmp(interface, "wl_shm") == 0) { wayland->shm = wl_registry_bind(registry, id, &wl_shm_interface, 1); -- cgit v1.2.3-70-g09d2