From 2956bb3dcfc0d5c084c09a6ea4c09f6f04b462dd Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 15 Sep 2017 15:34:43 +0200 Subject: [PATCH] Handle unknown keysyms properly in x0vncserver We would accidentally store they keycode 0 for unknown keysyms, wedging the lookup table. --- unix/x0vncserver/x0vncserver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/x0vncserver/x0vncserver.cxx b/unix/x0vncserver/x0vncserver.cxx index f4dd6f99..b9d717f0 100644 --- a/unix/x0vncserver/x0vncserver.cxx +++ b/unix/x0vncserver/x0vncserver.cxx @@ -403,7 +403,7 @@ public: keycode = codeMap[xtcode]; if (!keycode) { - if (!down || (pressedKeys.find(keysym) != pressedKeys.end())) + if (pressedKeys.find(keysym) != pressedKeys.end()) keycode = pressedKeys[keysym]; else { // XKeysymToKeycode() doesn't respect state, so we have to use -- 2.39.5