diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-10-06 15:16:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-06 15:16:10 -0400 |
commit | 08ccc7f653e63afbb8199b98be5862520c36d480 (patch) | |
tree | 5a513870cf185a0cc1d711a3c9ad401af29aee9f /backend/x11/backend.c | |
parent | b351e0a95063114f8ff06c90c21d76cb9d26834e (diff) | |
parent | 568b270cdfcee0f1427417510ef868d54fd8c223 (diff) |
Merge pull request #221 from versusvoid/wayland-xkb_state_update_mask
Use xkb_state_update_mask() with Wayland backend
Diffstat (limited to 'backend/x11/backend.c')
-rw-r--r-- | backend/x11/backend.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |