Open morgant opened 3 years ago
There are some XKeycodeToKeysym
alternatives discussed in this Stack Overflow question.
fvwm
on OpenBSD is still using XKeycodeToKeysym
, so no direction there, but the comment for its usage (which is retained in mlvwm
, less the comment) is interesting:
/* Here's a real hack - some systems have two keys with the
* same keysym and different keycodes. This converts all
* the cases to one keycode. */
I think that converting to XGetKeyboardMapping()
is the correct solution as XKB
is not available on all platforms, but I'll need to understand it better to see if we can reimplement the hack using it.
There is currently one warning in
mlvwm/event.c
when compiling with clang on OpenBSD 6.8: