summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-03-01 18:30:14 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-03-01 18:30:14 +0100
commitc91c5ba3f3c374eb4c59327bdf7576bfe1e776f7 (patch)
tree63cb30c2011c4a87ba710a5fcedcc7797d455988 /src
parent32924c21ca08e7203ffb376896a4012bd46f1f93 (diff)
stdin keyboard input: Ignore uninitialized keysyms
This fixes Ctrl+key causing unintended behaviour. Closes #596
Diffstat (limited to 'src')
-rw-r--r--src/keyevents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index 0ca489a..8185167 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -359,7 +359,7 @@ void feh_event_handle_stdin()
else
keysym = XStringToKeysym(stdin_buf);
- if (window_num)
+ if (window_num && keysym)
feh_event_handle_generic(windows[0], is_esc * Mod1Mask, keysym, 0);
is_esc = 0;