aboutsummaryrefslogtreecommitdiff
path: root/sway/input
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/seat.c1
-rw-r--r--sway/input/text_input.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index f899483d..de1a1881 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -51,6 +51,7 @@ void seat_destroy(struct sway_seat *seat) {
wl_list_for_each_safe(seat_device, next, &seat->devices, link) {
seat_device_destroy(seat_device);
}
+ sway_input_method_relay_finish(&seat->im_relay);
sway_cursor_destroy(seat->cursor);
wl_list_remove(&seat->new_node.link);
wl_list_remove(&seat->request_start_drag.link);
diff --git a/sway/input/text_input.c b/sway/input/text_input.c
index 2fb25eef..f83726ee 100644
--- a/sway/input/text_input.c
+++ b/sway/input/text_input.c
@@ -263,6 +263,11 @@ void sway_input_method_relay_init(struct sway_seat *seat,
&relay->input_method_new);
}
+void sway_input_method_relay_finish(struct sway_input_method_relay *relay) {
+ wl_list_remove(&relay->input_method_new.link);
+ wl_list_remove(&relay->text_input_new.link);
+}
+
void sway_input_method_relay_set_focus(struct sway_input_method_relay *relay,
struct wlr_surface *surface) {
struct sway_text_input *text_input;