diff options
Diffstat (limited to 'fbpdf.c')
-rw-r--r-- | fbpdf.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |