Skip to content

Commit

Permalink
virtual_keyboard: Accept keycode 0
Browse files Browse the repository at this point in the history
  • Loading branch information
dcz-purism authored and emersion committed Nov 27, 2019
1 parent 5df606d commit fadd470
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions types/wlr_virtual_keyboard_v1.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ static void virtual_keyboard_keymap(struct wl_client *client,
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) {
Expand Down
1 change: 0 additions & 1 deletion util/array.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fadd470

Please sign in to comment.