]> source.dussan.org Git - tigervnc.git/commitdiff
Add debug output for x0vncserver key events
authorPierre Ossman <ossman@cendio.se>
Wed, 25 Jul 2018 18:02:20 +0000 (20:02 +0200)
committerPierre Ossman <ossman@cendio.se>
Wed, 25 Jul 2018 18:02:20 +0000 (20:02 +0200)
unix/x0vncserver/XDesktop.cxx

index 0273a6df72f2f55f0f28ca28bbb03b872f52e6e4..110b79eb7c2dac81d91a6323f8cb1509fcf48ac0 100644 (file)
@@ -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
 }