aboutsummaryrefslogtreecommitdiffstats
path: root/fbcon.c
diff options
context:
space:
mode:
Diffstat (limited to 'fbcon.c')
-rw-r--r--fbcon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fbcon.c b/fbcon.c
index b231984..d34eec2 100644
--- a/fbcon.c
+++ b/fbcon.c
@@ -314,7 +314,7 @@ static void child_exec_shell(struct winsize *win)
fprintf(stderr, "\x1b[0m");
/* check for errors */
- if (libinput_deverror != 0) {
+ if (libinput_deverror != 0 || libinput_devcount == 0) {
fprintf(stderr, "ERROR: failed to open input devices (%d ok, %d failed)\n",
libinput_devcount, libinput_deverror);
return;