diff options
author | Andri Yngvason <andri@yngvason.is> | 2020-12-28 02:07:41 +0000 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-01-01 19:02:56 +0100 |
commit | 98eece53ad87dd3b9a9c96df0714683e12dafe44 (patch) | |
tree | 7c4f9c3579c3fb68d55e1fe9ab8ce6b661100dc1 /sway/input/seat.c | |
parent | Remove create_renderer_func argument (diff) | |
download | sway-98eece53ad87dd3b9a9c96df0714683e12dafe44.tar.gz sway-98eece53ad87dd3b9a9c96df0714683e12dafe44.tar.zst sway-98eece53ad87dd3b9a9c96df0714683e12dafe44.zip |
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.
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 1 |
1 files changed, 1 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) { | |||
51 | wl_list_for_each_safe(seat_device, next, &seat->devices, link) { | 51 | wl_list_for_each_safe(seat_device, next, &seat->devices, link) { |
52 | seat_device_destroy(seat_device); | 52 | seat_device_destroy(seat_device); |
53 | } | 53 | } |
54 | sway_input_method_relay_finish(&seat->im_relay); | ||
54 | sway_cursor_destroy(seat->cursor); | 55 | sway_cursor_destroy(seat->cursor); |
55 | wl_list_remove(&seat->new_node.link); | 56 | wl_list_remove(&seat->new_node.link); |
56 | wl_list_remove(&seat->request_start_drag.link); | 57 | wl_list_remove(&seat->request_start_drag.link); |