aboutsummaryrefslogtreecommitdiff
path: root/backend/x11
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-10-07 13:04:04 -0400
committerTony Crisci <tony@dubstepdish.com>2017-10-07 13:04:04 -0400
commit4f848000af6bdf57a6e861e69a53677f23133202 (patch)
tree341aca21d2cfd2b24021e83c4f85fa68b9f4618a /backend/x11
parent4680943e749bfd441d31c988faa50f2b1ae043ad (diff)
parent321c26c2a3c77ddba52e1a6194669328e473fdb4 (diff)
Merge branch 'master' into feature/xdg-popup
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 e0f57f82..2134536c 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;
}