Skip to content

Commit

Permalink
im: remove listener on pending surface destoryed
Browse files Browse the repository at this point in the history
  • Loading branch information
xdavidwu committed Jan 12, 2020
1 parent 43f9e3a commit 4b8ffbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sway/input/text_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ static void handle_pending_focused_surface_destroy(struct wl_listener *listener,
struct wlr_surface *surface = data;
assert(text_input->pending_focused_surface == surface);
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(
Expand Down

0 comments on commit 4b8ffbc

Please sign in to comment.