diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2015-12-12 12:59:42 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2015-12-12 12:59:42 -0500 |
| commit | 3d53fd6639e88f4a97667bc8fe5ea95662811edd (patch) | |
| tree | d08b4988ddb85d9d9cd819d510abe68fa9c9858b /wayland | |
| parent | 0cae5c4b122f0eac8742ee316bc6095faf04924e (diff) | |
Fix build issue
Diffstat (limited to 'wayland')
| -rw-r--r-- | wayland/registry.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wayland/registry.c b/wayland/registry.c index c6344cab..6c290185 100644 --- a/wayland/registry.c +++ b/wayland/registry.c @@ -126,11 +126,11 @@ static void keyboard_handle_key(void *data, struct wl_keyboard *keyboard, struct registry *registry = data; enum wl_keyboard_key_state state = state_w; - if (!input->xkb.state) { + if (!registry->input->xkb.state) { return; } - xkb_keysym_t sym = xkb_state_key_get_one_sym(input->xkb.state, key + 8); + xkb_keysym_t sym = xkb_state_key_get_one_sym(registry->input->xkb.state, key + 8); registry->input->sym = (state == WL_KEYBOARD_KEY_STATE_PRESSED ? sym : XKB_KEY_NoSymbol); registry->input->code = (state == WL_KEYBOARD_KEY_STATE_PRESSED ? key + 8 : 0); if (registry->input->notify) { |
