From 568b270cdfcee0f1427417510ef868d54fd8c223 Mon Sep 17 00:00:00 2001 From: Versus Void Date: Fri, 6 Oct 2017 12:03:34 +0300 Subject: Use xkb_state_update_mask() with Wayland backend Fix #158 --- backend/libinput/keyboard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend/libinput/keyboard.c') 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); } -- cgit v1.2.3