relative_pointer: implement protocol requests

Flesh out the details of the structs, signals, callback functions, and
so on. weston-resizer silently works at this point (no events sent).
This commit is contained in:
random human 2018-10-01 03:54:21 +05:30 committed by Alex Maese
parent 3a3d1b6617
commit ba5b1676df
4 changed files with 114 additions and 22 deletions

View file

@ -79,6 +79,9 @@ static void seat_client_handle_resource_destroy(
wl_resource_for_each_safe(resource, tmp, &client->pointers) {
wl_resource_destroy(resource);
}
wl_resource_for_each_safe(resource, tmp, &client->relative_pointers) {
wl_resource_destroy(resource);
}
wl_resource_for_each_safe(resource, tmp, &client->keyboards) {
wl_resource_destroy(resource);
}
@ -131,6 +134,7 @@ static void seat_handle_bind(struct wl_client *client, void *_wlr_seat,
seat_client->seat = wlr_seat;
wl_list_init(&seat_client->resources);
wl_list_init(&seat_client->pointers);
wl_list_init(&seat_client->relative_pointers);
wl_list_init(&seat_client->keyboards);
wl_list_init(&seat_client->touches);
wl_list_init(&seat_client->data_devices);