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: add destroy function
Browse files Browse the repository at this point in the history
  • Loading branch information
xdavidwu committed Apr 7, 2020
1 parent 79686a4 commit d258deb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/wlr/types/wlr_input_method_v2.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,7 @@ void wlr_input_method_keyboard_grab_v2_send_modifiers(
void wlr_input_method_keyboard_grab_v2_set_keyboard(
struct wlr_input_method_keyboard_grab_v2 *keyboard_grab,
struct wlr_keyboard *keyboard);
void wlr_input_method_keyboard_grab_v2_destroy(
struct wlr_input_method_keyboard_grab_v2 *keyboard_grab);

#endif
4 changes: 4 additions & 0 deletions types/wlr_input_method_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ void wlr_input_method_keyboard_grab_v2_set_keyboard(
keyboard_grab->keyboard = keyboard;
};

void wlr_input_method_keyboard_grab_v2_destroy(
struct wlr_input_method_keyboard_grab_v2 *keyboard_grab) {
keyboard_grab_destroy(keyboard_grab);
}
static void im_grab_keyboard(struct wl_client *client,
struct wl_resource *resource, uint32_t keyboard) {
struct wlr_input_method_v2 *input_method =
Expand Down

0 comments on commit d258deb

Please sign in to comment.