aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-06 15:16:10 -0400
committerGitHub <noreply@github.com>2017-10-06 15:16:10 -0400
commit08ccc7f653e63afbb8199b98be5862520c36d480 (patch)
tree5a513870cf185a0cc1d711a3c9ad401af29aee9f /backend/libinput
parentb351e0a95063114f8ff06c90c21d76cb9d26834e (diff)
parent568b270cdfcee0f1427417510ef868d54fd8c223 (diff)
Merge pull request #221 from versusvoid/wayland-xkb_state_update_mask
Use xkb_state_update_mask() with Wayland backend
Diffstat (limited to 'backend/libinput')
-rw-r--r--backend/libinput/keyboard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/libinput/keyboard.c b/backend/libinput/keyboard.c
index 53c3a61b..00a7ecdf 100644
--- a/backend/libinput/keyboard.c
+++ b/backend/libinput/keyboard.c
@@ -67,5 +67,6 @@ void handle_keyboard_key(struct libinput_event *event,
wlr_event.state = WLR_KEY_PRESSED;
break;
}
- wlr_keyboard_update_state(wlr_dev->keyboard, &wlr_event);
+ wlr_event.update_state = true;
+ wlr_keyboard_notify_key(wlr_dev->keyboard, &wlr_event);
}