aboutsummaryrefslogtreecommitdiff
path: root/backend/x11
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/x11
parentb2d478a4189ffd96dc6158003f5cde76b70bd368 (diff)
Use xkb_state_update_mask() with Wayland backend
Fix #158
Diffstat (limited to 'backend/x11')
-rw-r--r--backend/x11/backend.c4
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;
}