diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-10-01 11:35:22 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-10-01 11:35:22 -0400 |
commit | aa8a4f12b7e7ea8c3a1876f0585dd6171f8cb705 (patch) | |
tree | 7967892271c06b6316790ed8b30f1e788c899930 /rootston | |
parent | 6241ac41d58642db60bedd8f47e9de7f006e7150 (diff) |
Fix keyboard handling in examples
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/keyboard.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rootston/keyboard.c b/rootston/keyboard.c index c4c98c91..003aab98 100644 --- a/rootston/keyboard.c +++ b/rootston/keyboard.c @@ -59,9 +59,8 @@ void keyboard_add(struct wlr_input_device *device, struct roots_input *input) { rules.options = getenv("XKB_DEFAULT_OPTIONS"); struct xkb_context *context; assert(context = xkb_context_new(XKB_CONTEXT_NO_FLAGS)); - wlr_keyboard_set_keymap(device->keyboard, - xkb_map_new_from_names(context, &rules, - XKB_KEYMAP_COMPILE_NO_FLAGS)); + wlr_keyboard_set_keymap(device->keyboard, xkb_map_new_from_names(context, + &rules, XKB_KEYMAP_COMPILE_NO_FLAGS)); xkb_context_unref(context); wlr_seat_attach_keyboard(input->wl_seat, device); } |