aboutsummaryrefslogtreecommitdiffstats
path: root/fbpdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'fbpdf.c')
-rw-r--r--fbpdf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fbpdf.c b/fbpdf.c
index dfde24d..58b4741 100644
--- a/fbpdf.c
+++ b/fbpdf.c
@@ -350,6 +350,11 @@ int main(int argc, char *argv[])
}
kbd_init(use_libinput, gfx->devnum);
+ if (use_libinput && libinput_deverror != 0) {
+ fprintf(stderr, "ERROR: failed to open input devices (%d ok, %d failed)\n",
+ libinput_devcount, libinput_deverror);
+ cleanup_and_exit(0);
+ }
index = 0;
newpage = true;