mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-28 22:23:42 +01:00
Fix build issue
This commit is contained in:
parent
029e0c7a2c
commit
182a6dc8fb
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue