mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 16:42:26 +00:00
types/wlr_virtual_pointer_v1: remove destroy event
The destroy event from the pointer base wlr_input_device must be used
This commit is contained in:
parent
45c8771735
commit
4c8ecfcd4a
@ -35,10 +35,6 @@ struct wlr_virtual_pointer_v1 {
|
||||
bool axis_valid[2];
|
||||
|
||||
struct wl_list link;
|
||||
|
||||
struct {
|
||||
struct wl_signal destroy; // struct wlr_virtual_pointer_v1*
|
||||
} events;
|
||||
};
|
||||
|
||||
struct wlr_virtual_pointer_v1_new_pointer_event {
|
||||
|
@ -199,8 +199,6 @@ static void virtual_pointer_destroy_resource(struct wl_resource *resource) {
|
||||
return;
|
||||
}
|
||||
|
||||
wlr_signal_emit_safe(&pointer->events.destroy, pointer);
|
||||
|
||||
wlr_pointer_finish(&pointer->pointer);
|
||||
|
||||
wl_resource_set_user_data(pointer->resource, NULL);
|
||||
@ -278,7 +276,6 @@ static void virtual_pointer_manager_create_virtual_pointer_with_output(
|
||||
}
|
||||
|
||||
virtual_pointer->resource = pointer_resource;
|
||||
wl_signal_init(&virtual_pointer->events.destroy);
|
||||
|
||||
wl_list_insert(&manager->virtual_pointers, &virtual_pointer->link);
|
||||
wlr_signal_emit_safe(&manager->events.new_virtual_pointer, &event);
|
||||
|
Loading…
Reference in New Issue
Block a user