diff options
-rw-r--r-- | types/seat/wlr_seat_keyboard.c | 2 | ||||
-rw-r--r-- | types/wlr_virtual_keyboard_v1.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/types/seat/wlr_seat_keyboard.c b/types/seat/wlr_seat_keyboard.c index 8c1b56e1..e8ea300e 100644 --- a/types/seat/wlr_seat_keyboard.c +++ b/types/seat/wlr_seat_keyboard.c @@ -110,7 +110,7 @@ static void handle_keyboard_repeat_info(struct wl_listener *listener, static void handle_keyboard_destroy(struct wl_listener *listener, void *data) { struct wlr_seat_keyboard_state *state = wl_container_of(listener, state, keyboard_destroy); - state->keyboard = NULL; + wlr_seat_set_keyboard(state->seat, NULL); } void wlr_seat_set_keyboard(struct wlr_seat *seat, diff --git a/types/wlr_virtual_keyboard_v1.c b/types/wlr_virtual_keyboard_v1.c index bd9ecf2b..89291b12 100644 --- a/types/wlr_virtual_keyboard_v1.c +++ b/types/wlr_virtual_keyboard_v1.c @@ -99,7 +99,7 @@ static void virtual_keyboard_destroy_resource(struct wl_resource *resource) { virtual_keyboard_from_resource(resource); wlr_signal_emit_safe(&keyboard->events.destroy, keyboard); wl_list_remove(&keyboard->link); - wlr_keyboard_destroy(keyboard->input_device.keyboard); + wlr_input_device_destroy(&keyboard->input_device); free(keyboard); } |