diff options
| author | Jari Vetoniemi <mailroxas@gmail.com> | 2016-04-12 17:57:56 +0300 | 
|---|---|---|
| committer | Jari Vetoniemi <mailroxas@gmail.com> | 2016-04-12 18:01:05 +0300 | 
| commit | 6b951600aa4477a7fac0b60deedc852c79117715 (patch) | |
| tree | 9ea3d3a963d74df1960fe1551351d97c0ef80fa1 /lib | |
| parent | 4d521519ca32bf5932fbf1f728bf09a9630b117a (diff) | |
| download | bemenu-6b951600aa4477a7fac0b60deedc852c79117715.tar.gz bemenu-6b951600aa4477a7fac0b60deedc852c79117715.tar.bz2 bemenu-6b951600aa4477a7fac0b60deedc852c79117715.zip  | |
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.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/renderers/wayland/registry.c | 4 | 
1 files changed, 2 insertions, 2 deletions
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);  | 
