diff options
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, | |||
126 | struct registry *registry = data; | 126 | struct registry *registry = data; |
127 | enum wl_keyboard_key_state state = state_w; | 127 | enum wl_keyboard_key_state state = state_w; |
128 | 128 | ||
129 | if (!input->xkb.state) { | 129 | if (!registry->input->xkb.state) { |
130 | return; | 130 | return; |
131 | } | 131 | } |
132 | 132 | ||
133 | xkb_keysym_t sym = xkb_state_key_get_one_sym(input->xkb.state, key + 8); | 133 | xkb_keysym_t sym = xkb_state_key_get_one_sym(registry->input->xkb.state, key + 8); |
134 | registry->input->sym = (state == WL_KEYBOARD_KEY_STATE_PRESSED ? sym : XKB_KEY_NoSymbol); | 134 | registry->input->sym = (state == WL_KEYBOARD_KEY_STATE_PRESSED ? sym : XKB_KEY_NoSymbol); |
135 | registry->input->code = (state == WL_KEYBOARD_KEY_STATE_PRESSED ? key + 8 : 0); | 135 | registry->input->code = (state == WL_KEYBOARD_KEY_STATE_PRESSED ? key + 8 : 0); |
136 | if (registry->input->notify) { | 136 | if (registry->input->notify) { |