forked from external/yambar
bar/wayland: drop wl_seat interface version requirement to 1
This allows us to drop the empty 'name' handler.
This commit is contained in:
parent
620d89319b
commit
a1bcf07599
1 changed files with 1 additions and 7 deletions
|
@ -238,14 +238,8 @@ seat_handle_capabilities(void *data, struct wl_seat *wl_seat,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
seat_handle_name(void *data, struct wl_seat *wl_seat, const char *name)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static const struct wl_seat_listener seat_listener = {
|
static const struct wl_seat_listener seat_listener = {
|
||||||
.capabilities = seat_handle_capabilities,
|
.capabilities = seat_handle_capabilities,
|
||||||
.name = seat_handle_name,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -377,7 +371,7 @@ handle_global(void *data, struct wl_registry *registry,
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (strcmp(interface, wl_seat_interface.name) == 0) {
|
else if (strcmp(interface, wl_seat_interface.name) == 0) {
|
||||||
backend->seat = wl_registry_bind(registry, name, &wl_seat_interface, 3);
|
backend->seat = wl_registry_bind(registry, name, &wl_seat_interface, 1);
|
||||||
wl_seat_add_listener(backend->seat, &seat_listener, backend);
|
wl_seat_add_listener(backend->seat, &seat_listener, backend);
|
||||||
wl_display_roundtrip(backend->display);
|
wl_display_roundtrip(backend->display);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue