diff --git a/clients/keyboard.c b/clients/keyboard.c index 0687eebc9..7a267ca49 100644 --- a/clients/keyboard.c +++ b/clients/keyboard.c @@ -620,6 +620,11 @@ append(char *s1, const char *s2) static void keyboard_handle_key(struct keyboard *keyboard, uint32_t time, const struct key *key, uint32_t key_num, struct input *input, enum wl_pointer_button_state state) { + if (keyboard->keyboard->context == NULL) + { + return; + } + const char *label = NULL; switch(keyboard->state) {