From: Pierre Ossman Date: Wed, 25 Jul 2018 18:02:20 +0000 (+0200) Subject: Add debug output for x0vncserver key events X-Git-Tag: v1.9.90~104 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a6072cc607b08a32c06456389fab5572530e8e0e;p=tigervnc.git Add debug output for x0vncserver key events --- 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 }