Use xkb_state_update_mask() with Wayland backend

Fix #158
This commit is contained in:
Versus Void 2017-10-06 12:03:34 +03:00
parent b2d478a418
commit 568b270cdf
6 changed files with 29 additions and 9 deletions

View file

@ -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;
}