types/wlr_virtual_keyboard_v1: remove destroy event

The destroy event from the keyboard base wlr_input_device must be used
This commit is contained in:
Simon Zeni 2022-03-08 15:54:38 -05:00 committed by Kirill Primak
parent eae8952e17
commit 45c8771735
2 changed files with 0 additions and 7 deletions

View file

@ -31,10 +31,6 @@ struct wlr_virtual_keyboard_v1 {
bool has_keymap; bool has_keymap;
struct wl_list link; struct wl_list link;
struct {
struct wl_signal destroy; // struct wlr_virtual_keyboard_v1*
} events;
}; };
struct wlr_virtual_keyboard_manager_v1* wlr_virtual_keyboard_manager_v1_create( struct wlr_virtual_keyboard_manager_v1* wlr_virtual_keyboard_manager_v1_create(

View file

@ -109,8 +109,6 @@ static void virtual_keyboard_destroy_resource(struct wl_resource *resource) {
return; return;
} }
wlr_signal_emit_safe(&keyboard->events.destroy, keyboard);
wlr_keyboard_finish(&keyboard->keyboard); wlr_keyboard_finish(&keyboard->keyboard);
wl_resource_set_user_data(keyboard->resource, NULL); wl_resource_set_user_data(keyboard->resource, NULL);
@ -171,7 +169,6 @@ static void virtual_keyboard_manager_create_virtual_keyboard(
virtual_keyboard->resource = keyboard_resource; virtual_keyboard->resource = keyboard_resource;
virtual_keyboard->seat = seat_client->seat; virtual_keyboard->seat = seat_client->seat;
wl_signal_init(&virtual_keyboard->events.destroy);
wl_list_insert(&manager->virtual_keyboards, &virtual_keyboard->link); wl_list_insert(&manager->virtual_keyboards, &virtual_keyboard->link);