diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-03-01 18:30:14 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-03-01 18:30:14 +0100 |
commit | c91c5ba3f3c374eb4c59327bdf7576bfe1e776f7 (patch) | |
tree | 63cb30c2011c4a87ba710a5fcedcc7797d455988 | |
parent | 32924c21ca08e7203ffb376896a4012bd46f1f93 (diff) |
stdin keyboard input: Ignore uninitialized keysyms
This fixes Ctrl+key causing unintended behaviour. Closes #596
-rw-r--r-- | src/keyevents.c | 2 |
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; |