diff options
Diffstat (limited to 'fbi.c')
-rw-r--r-- | fbi.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1357,8 +1357,14 @@ int main(int argc, char *argv[]) shadow_init(gfx); extents = shadow_font_init(fontname); - /* svga main loop */ 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); + } + + /* svga main loop */ desc = NULL; info = NULL; for (;;) { |