summaryrefslogtreecommitdiffstats
path: root/wayland
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-12-12 12:59:42 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-12-12 12:59:42 -0500
commit182a6dc8fbdd647d6e55f80cfc89f741a518fd69 (patch)
treed08b4988ddb85d9d9cd819d510abe68fa9c9858b /wayland
parentAdd some more keyboard handling for wayland clients (diff)
downloadsway-182a6dc8fbdd647d6e55f80cfc89f741a518fd69.tar.gz
sway-182a6dc8fbdd647d6e55f80cfc89f741a518fd69.tar.zst
sway-182a6dc8fbdd647d6e55f80cfc89f741a518fd69.zip
Fix build issue
Diffstat (limited to 'wayland')
-rw-r--r--wayland/registry.c4
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) {