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/x11/backend.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'backend/x11/backend.c') diff --git a/backend/x11/backend.c b/backend/x11/backend.c index 88c022d1..ed88064e 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -51,9 +51,11 @@ static bool handle_x11_event(struct wlr_x11_backend *x11, xcb_generic_event_t *e .keycode = ev->detail - 8, .state = event->response_type == XCB_KEY_PRESS ? WLR_KEY_PRESSED : WLR_KEY_RELEASED, + .update_state = true, }; - wl_signal_emit(&x11->keyboard.events.key, &key); + // TODO use xcb-xkb for more precise modifiers state? + wlr_keyboard_notify_key(&x11->keyboard, &key); x11->time = ev->time; break; } -- cgit v1.2.3