diff options
author | Simon Ser <contact@emersion.fr> | 2024-02-17 14:47:42 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2024-02-23 14:05:52 +0100 |
commit | 07b059852673cd9e148c2adfc6bb4f8a0d0ff315 (patch) | |
tree | 7cda3ab3817b1be95d530fc169c32916396cea45 /sway | |
parent | input/text_input: parent wlr_box may be uninitialized (diff) | |
download | sway-07b059852673cd9e148c2adfc6bb4f8a0d0ff315.tar.gz sway-07b059852673cd9e148c2adfc6bb4f8a0d0ff315.tar.zst sway-07b059852673cd9e148c2adfc6bb4f8a0d0ff315.zip |
input/text_input: fix dangling listeners
Diffstat (limited to 'sway')
-rw-r--r-- | sway/input/text_input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/input/text_input.c b/sway/input/text_input.c index ad760a6f..5e96c3a8 100644 --- a/sway/input/text_input.c +++ b/sway/input/text_input.c | |||
@@ -109,6 +109,9 @@ static void handle_im_destroy(struct wl_listener *listener, void *data) { | |||
109 | input_method_destroy); | 109 | input_method_destroy); |
110 | struct wlr_input_method_v2 *context = data; | 110 | struct wlr_input_method_v2 *context = data; |
111 | assert(context == relay->input_method); | 111 | assert(context == relay->input_method); |
112 | wl_list_remove(&relay->input_method_commit.link); | ||
113 | wl_list_remove(&relay->input_method_grab_keyboard.link); | ||
114 | wl_list_remove(&relay->input_method_destroy.link); | ||
112 | wl_list_remove(&relay->input_method_new_popup_surface.link); | 115 | wl_list_remove(&relay->input_method_new_popup_surface.link); |
113 | relay->input_method = NULL; | 116 | relay->input_method = NULL; |
114 | struct sway_text_input *text_input = relay_get_focused_text_input(relay); | 117 | struct sway_text_input *text_input = relay_get_focused_text_input(relay); |