Skip to content

Commit

Permalink
input-method: use wlr_input_device_get_virtual_keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
xdavidwu committed Apr 14, 2020
1 parent 5f1c2b6 commit 02c876d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sway/input/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ static void handle_key_event(struct sway_keyboard *keyboard,
struct wlr_input_method_keyboard_grab_v2 *kb_grab =
seat->im_relay.input_method->keyboard_grab;
struct wlr_virtual_keyboard_v1 *virtual_keyboard =
wlr_device->keyboard->virtual_keyboard;
wlr_input_device_get_virtual_keyboard(wlr_device);

// If event is from virtual keyboard of the same client as grab,
// do not send it back
Expand Down Expand Up @@ -578,7 +578,7 @@ static void handle_modifier_event(struct sway_keyboard *keyboard) {
struct wlr_input_method_keyboard_grab_v2 *kb_grab =
seat->im_relay.input_method->keyboard_grab;
struct wlr_virtual_keyboard_v1 *virtual_keyboard =
wlr_device->keyboard->virtual_keyboard;
wlr_input_device_get_virtual_keyboard(wlr_device);

// If event is from virtual keyboard of the same client as grab,
// do not send it back
Expand Down

0 comments on commit 02c876d

Please sign in to comment.