From 21604a047941b8fe81d381ede0371c75da964afd Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 8 Nov 2015 18:19:22 +0200 Subject: [PATCH] input: bugfix in defbind check --- input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input.c b/input.c index 783ed1e..d0e4a4e 100644 --- a/input.c +++ b/input.c @@ -63,7 +63,7 @@ static int *in_alloc_binds(int drv_id, int key_count) defbinds = DRV(drv_id).defbinds; if (defbinds != NULL) { for (i = 0; ; i++) { - if (defbinds[i].bit == 0 && defbinds[i].btype == 0 + if (defbinds[i].code == 0 && defbinds[i].btype == 0 && defbinds[i].bit == 0) break; -- 2.39.2