|
|
|
@ -17,6 +17,10 @@ void wlr_pointer_destroy(struct wlr_pointer *pointer) {
|
|
|
|
|
if (pointer && pointer->impl && pointer->impl->destroy) {
|
|
|
|
|
pointer->impl->destroy(pointer);
|
|
|
|
|
} else {
|
|
|
|
|
wl_list_remove(&pointer->events.motion.listener_list);
|
|
|
|
|
wl_list_remove(&pointer->events.motion_absolute.listener_list);
|
|
|
|
|
wl_list_remove(&pointer->events.button.listener_list);
|
|
|
|
|
wl_list_remove(&pointer->events.axis.listener_list);
|
|
|
|
|
free(pointer);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|