mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 16:36:26 +01:00
im: remove listener on pending surface destoryed
This commit is contained in:
parent
4e1e5e4e33
commit
e6805ce6e9
1 changed files with 2 additions and 0 deletions
|
@ -174,6 +174,8 @@ static void handle_pending_focused_surface_destroy(struct wl_listener *listener,
|
||||||
struct wlr_surface *surface = data;
|
struct wlr_surface *surface = data;
|
||||||
assert(text_input->pending_focused_surface == surface);
|
assert(text_input->pending_focused_surface == surface);
|
||||||
text_input->pending_focused_surface = NULL;
|
text_input->pending_focused_surface = NULL;
|
||||||
|
wl_list_remove(&text_input->pending_focused_surface_destroy.link);
|
||||||
|
wl_list_init(&text_input->pending_focused_surface_destroy.link);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct sway_text_input *sway_text_input_create(
|
struct sway_text_input *sway_text_input_create(
|
||||||
|
|
Loading…
Reference in a new issue