]> source.dussan.org Git - tigervnc.git/commitdiff
Improve x0vncserver key allocation log line
authorPierre Ossman <ossman@cendio.se>
Tue, 6 Aug 2024 12:55:37 +0000 (14:55 +0200)
committerPierre Ossman <ossman@cendio.se>
Tue, 6 Aug 2024 12:55:37 +0000 (14:55 +0200)
Follow the standard XK_ prefix, and also include the hex value for
easier debugging.

unix/x0vncserver/XDesktop.cxx

index 800edaf826225ac40b1e824725dfc45ef4bc55d5..a00f2bc245d6dfdd9208c2664fa81b40464f2f9c 100644 (file)
@@ -492,7 +492,8 @@ KeyCode XDesktop::addKeysym(KeySym keysym)
   changes.num_key_syms = 1;
 
   if (XkbChangeMap(dpy, xkb, &changes)) {
-    vlog.info("Added unknown keysym %s to keycode %d", XKeysymToString(keysym), key);
+    vlog.info("Added unknown keysym XK_%s (0x%04x) to keycode %d",
+              XKeysymToString(keysym), (unsigned)keysym, key);
     addedKeysyms.push_front({ syms[0], (KeyCode)key });
     return key;
   }