From fadd4706edccee76355b384d84f43be8528347b2 Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Wed, 27 Nov 2019 15:09:16 +0000 Subject: [PATCH] virtual_keyboard: Accept keycode 0 --- types/wlr_virtual_keyboard_v1.c | 3 --- util/array.c | 1 - 2 files changed, 4 deletions(-) diff --git a/types/wlr_virtual_keyboard_v1.c b/types/wlr_virtual_keyboard_v1.c index df6563672..258a08cb8 100644 --- a/types/wlr_virtual_keyboard_v1.c +++ b/types/wlr_virtual_keyboard_v1.c @@ -75,9 +75,6 @@ context_fail: static void virtual_keyboard_key(struct wl_client *client, struct wl_resource *resource, uint32_t time, uint32_t key, uint32_t state) { - if (key == 0) { - return; - } struct wlr_virtual_keyboard_v1 *keyboard = virtual_keyboard_from_resource(resource); if (!keyboard->has_keymap) { diff --git a/util/array.c b/util/array.c index 7095870d4..b708b5776 100644 --- a/util/array.c +++ b/util/array.c @@ -24,7 +24,6 @@ bool set_add(uint32_t values[], size_t *len, size_t cap, uint32_t target) { if (*len == cap) { return false; } - assert(target > 0); for (uint32_t i = 0; i < *len; ++i) { if (values[i] == target) { return false;