data-device: make sure resources are correctly destroyed

This commit is contained in:
emersion 2018-05-03 20:22:51 +01:00
parent 7843a48432
commit 5d37b14116
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
5 changed files with 59 additions and 13 deletions

View file

@ -15,8 +15,16 @@ wlr_touch_grab_interface wlr_data_device_touch_drag_interface;
struct wlr_data_device_manager {
struct wl_global *global;
struct wl_list wl_resources;
struct wl_list data_sources;
struct wl_listener display_destroy;
struct {
struct wl_signal destroy;
} events;
void *data;
};
struct wlr_data_offer {