aboutsummaryrefslogtreecommitdiff
path: root/backend/x11/backend.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-06 15:16:10 -0400
committerGitHub <noreply@github.com>2017-10-06 15:16:10 -0400
commit08ccc7f653e63afbb8199b98be5862520c36d480 (patch)
tree5a513870cf185a0cc1d711a3c9ad401af29aee9f /backend/x11/backend.c
parentb351e0a95063114f8ff06c90c21d76cb9d26834e (diff)
parent568b270cdfcee0f1427417510ef868d54fd8c223 (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.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;
}