mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-22 06:59:44 -05:00
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:
parent
3a3d1b6617
commit
ba5b1676df
4 changed files with 114 additions and 22 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue