Skip to content
Permalink
Browse files

wayland: Support wayland compositors with wl_seat version < 5 (thanks…

…, Nia!).

Fixes Bugzilla #5074.
  • Loading branch information
icculus committed Apr 7, 2020
1 parent 3cb62d5 commit 024698779bf3d946e528409f4dd2fd5efad710a4

File 3 of 3 in 0246987

@@ -364,7 +364,7 @@ display_handle_global(void *data, struct wl_registry *registry, uint32_t id,
} else if (strcmp(interface, "wl_output") == 0) {
Wayland_add_display(d, id);
} else if (strcmp(interface, "wl_seat") == 0) {
Wayland_display_add_input(d, id);
Wayland_display_add_input(d, id, version);
} else if (strcmp(interface, "xdg_wm_base") == 0) {
d->shell.xdg = wl_registry_bind(d->registry, id, &xdg_wm_base_interface, 1);
xdg_wm_base_add_listener(d->shell.xdg, &shell_listener_xdg, NULL);

0 comments on commit 0246987

Please sign in to comment.