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

Commit

Permalink
input-method: send modifier state on grab destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
xdavidwu committed Feb 11, 2020
1 parent a0c3fe9 commit 17c1192
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 @@ -125,6 +125,10 @@ static void im_keyboard_grab_destroy(
if (im_keyboard_grab->keyboard) {
wl_list_remove(&im_keyboard_grab->keymap_listener.link);
wl_list_remove(&im_keyboard_grab->repeat_info_listener.link);

// send modifier state to original client
wlr_seat_keyboard_notify_modifiers(im_keyboard_grab->input_method->seat,
&im_keyboard_grab->keyboard->modifiers);
}
free(im_keyboard_grab);
}
Expand Down

0 comments on commit 17c1192

Please sign in to comment.