mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
Fix data_device destruction
This commit is contained in:
parent
86314caa5b
commit
154d2ad941
1 changed files with 3 additions and 0 deletions
|
@ -120,6 +120,9 @@ static void wl_seat_destroy(struct wl_resource *resource) {
|
||||||
if (handle->touch) {
|
if (handle->touch) {
|
||||||
wl_resource_destroy(handle->touch);
|
wl_resource_destroy(handle->touch);
|
||||||
}
|
}
|
||||||
|
if (handle->data_device) {
|
||||||
|
wl_resource_destroy(handle->data_device);
|
||||||
|
}
|
||||||
wl_signal_emit(&handle->wlr_seat->events.client_unbound, handle);
|
wl_signal_emit(&handle->wlr_seat->events.client_unbound, handle);
|
||||||
wl_list_remove(&handle->link);
|
wl_list_remove(&handle->link);
|
||||||
free(handle);
|
free(handle);
|
||||||
|
|
Loading…
Reference in a new issue