Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
im: keyboard grab: fix listener remove on destory
Browse files Browse the repository at this point in the history
  • Loading branch information
xdavidwu committed Jan 21, 2020
1 parent 618b599 commit 200ebc8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/wlr_input_method_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ static void im_get_input_popup_surface(struct wl_client *client,
static void im_keyboard_grab_destroy(
struct wlr_input_method_keyboard_grab_v2 *im_keyboard_grab) {
im_keyboard_grab->input_method->im_keyboard_grab = NULL;
if (im_keyboard_grab->keyboard) {
wl_list_remove(&im_keyboard_grab->keymap_listener.link);
wl_list_remove(&im_keyboard_grab->repeat_info_listener.link);
}
free(im_keyboard_grab);
}

Expand Down

0 comments on commit 200ebc8

Please sign in to comment.