mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
data-device: make device inert when seat is destroyed
This commit is contained in:
parent
9d6cb85b2d
commit
3f82eb1853
2 changed files with 16 additions and 5 deletions
|
|
@ -86,7 +86,12 @@ static void seat_client_handle_resource_destroy(
|
|||
wl_resource_destroy(resource);
|
||||
}
|
||||
wl_resource_for_each_safe(resource, tmp, &client->data_devices) {
|
||||
wl_resource_destroy(resource);
|
||||
// Make the data device inert
|
||||
wl_resource_set_user_data(resource, NULL);
|
||||
|
||||
struct wl_list *link = wl_resource_get_link(resource);
|
||||
wl_list_remove(link);
|
||||
wl_list_init(link);
|
||||
}
|
||||
|
||||
wl_list_remove(&client->link);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue