aboutsummaryrefslogtreecommitdiffstats
path: root/fbi.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-02-01 18:16:45 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-02-01 18:16:45 +0100
commit60fa59dcfba595feba1f17bb12fb4f44f96f7c16 (patch)
tree9af3c47da2f9840088786c1d162e210f01ef2093 /fbi.c
parent0e322a1ab05d5a2bfd35a01592b6bb2303c1cd97 (diff)
downloadfbida-60fa59dcfba595feba1f17bb12fb4f44f96f7c16.tar.gz
libinput tweaks
Diffstat (limited to 'fbi.c')
-rw-r--r--fbi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/fbi.c b/fbi.c
index 677ba25..37c2fcd 100644
--- a/fbi.c
+++ b/fbi.c
@@ -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 (;;) {