From 83a73a82f5c91c0ab223649a0e9af5430cfa3b9a Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 1 Feb 2019 21:28:57 +0100 Subject: libinput check fix --- fbpdf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fbpdf.c') diff --git a/fbpdf.c b/fbpdf.c index 58b4741..c29f78b 100644 --- a/fbpdf.c +++ b/fbpdf.c @@ -350,7 +350,8 @@ int main(int argc, char *argv[]) } kbd_init(use_libinput, gfx->devnum); - if (use_libinput && libinput_deverror != 0) { + if (use_libinput && (libinput_deverror != 0 || + libinput_devcount == 0)) { fprintf(stderr, "ERROR: failed to open input devices (%d ok, %d failed)\n", libinput_devcount, libinput_deverror); cleanup_and_exit(0); -- cgit