forked from external/yambar
Revert "bar/wayland: drop wl_seat interface version requirement to 1"
This reverts commit a1bcf07599
.
This commit is contained in:
parent
b4845a55fe
commit
fe709bd82b
1 changed files with 7 additions and 1 deletions
|
@ -238,8 +238,14 @@ 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
|
||||||
|
@ -371,7 +377,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, 1);
|
backend->seat = wl_registry_bind(registry, name, &wl_seat_interface, 3);
|
||||||
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