aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput
diff options
context:
space:
mode:
authorVersus Void <versusvoid@gmail.com>2017-10-06 12:03:34 +0300
committerVersus Void <versusvoid@gmail.com>2017-10-06 22:02:29 +0000
commit568b270cdfcee0f1427417510ef868d54fd8c223 (patch)
tree1065bf6b52c22ed7854cd733dda388cff9888347 /backend/libinput
parentb2d478a4189ffd96dc6158003f5cde76b70bd368 (diff)
Use xkb_state_update_mask() with Wayland backend
Fix #158
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);
}