Skip to content

Commit

Permalink
Improve x0vncserver key allocation log line
Browse files Browse the repository at this point in the history
Follow the standard XK_ prefix, and also include the hex value for
easier debugging.
  • Loading branch information
CendioOssman committed Aug 6, 2024
1 parent 01cf61b commit 948be98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unix/x0vncserver/XDesktop.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 948be98

Please sign in to comment.