summaryrefslogtreecommitdiff
path: root/src/keyevents.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyevents.c')
-rw-r--r--src/keyevents.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index b5c1949..2e49676 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -271,7 +271,8 @@ void feh_event_handle_stdin()
char stdin_buf[2];
KeySym keysym = NoSymbol;
if (read(STDIN_FILENO, &stdin_buf, 1) == -1) {
- weprintf("reading a command from stdin failed");
+ if (control_via_stdin)
+ weprintf("reading a command from stdin failed");
return;
}
stdin_buf[1] = '\0';