diff options
author | xdavidwu <xdavidwuph@gmail.com> | 2020-01-12 19:49:19 +0800 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-04-04 11:42:04 +0200 |
commit | e6805ce6e9a7412bf9f4a92c2d042e4545bed817 (patch) | |
tree | e87f2cdaab1fbfcaf513f8aed3ebff1c9a705a8e | |
parent | im: make text-input listeners per text-input (diff) | |
download | sway-e6805ce6e9a7412bf9f4a92c2d042e4545bed817.tar.gz sway-e6805ce6e9a7412bf9f4a92c2d042e4545bed817.tar.zst sway-e6805ce6e9a7412bf9f4a92c2d042e4545bed817.zip |
im: remove listener on pending surface destoryed
-rw-r--r-- | sway/input/text_input.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/input/text_input.c b/sway/input/text_input.c index a59fd16a..b5b50220 100644 --- a/sway/input/text_input.c +++ b/sway/input/text_input.c | |||
@@ -174,6 +174,8 @@ static void handle_pending_focused_surface_destroy(struct wl_listener *listener, | |||
174 | struct wlr_surface *surface = data; | 174 | struct wlr_surface *surface = data; |
175 | assert(text_input->pending_focused_surface == surface); | 175 | assert(text_input->pending_focused_surface == surface); |
176 | text_input->pending_focused_surface = NULL; | 176 | text_input->pending_focused_surface = NULL; |
177 | wl_list_remove(&text_input->pending_focused_surface_destroy.link); | ||
178 | wl_list_init(&text_input->pending_focused_surface_destroy.link); | ||
177 | } | 179 | } |
178 | 180 | ||
179 | struct sway_text_input *sway_text_input_create( | 181 | struct sway_text_input *sway_text_input_create( |