From 98eece53ad87dd3b9a9c96df0714683e12dafe44 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Mon, 28 Dec 2020 02:07:41 +0000 Subject: input: Clean up input_method_relay in seat_destoy() This fixes a crash that happens when input_method_new or text_method_new events are emitted after the seat has been freed. --- include/sway/input/text_input.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/sway/input/text_input.h b/include/sway/input/text_input.h index 81915795..6cf9bdb3 100644 --- a/include/sway/input/text_input.h +++ b/include/sway/input/text_input.h @@ -53,6 +53,8 @@ struct sway_text_input { void sway_input_method_relay_init(struct sway_seat *seat, struct sway_input_method_relay *relay); +void sway_input_method_relay_finish(struct sway_input_method_relay *relay); + // Updates currently focused surface. Surface must belong to the same seat. void sway_input_method_relay_set_focus(struct sway_input_method_relay *relay, struct wlr_surface *surface); -- cgit v1.2.3-54-g00ecf