From a6072cc607b08a32c06456389fab5572530e8e0e Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 25 Jul 2018 20:02:20 +0200 Subject: [PATCH] Add debug output for x0vncserver key events --- unix/x0vncserver/XDesktop.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/unix/x0vncserver/XDesktop.cxx b/unix/x0vncserver/XDesktop.cxx index 0273a6df..110b79eb 100644 --- a/unix/x0vncserver/XDesktop.cxx +++ b/unix/x0vncserver/XDesktop.cxx @@ -346,14 +346,18 @@ void XDesktop::keyEvent(rdr::U32 keysym, rdr::U32 xtcode, bool down) { } } - if (!keycode) + if (!keycode) { + vlog.error("Could not map key event to X11 key code"); return; + } if (down) pressedKeys[keysym] = keycode; else pressedKeys.erase(keysym); + vlog.debug("%d %s", keycode, down ? "down" : "up"); + XTestFakeKeyEvent(dpy, keycode, down, CurrentTime); #endif } -- 2.39.5