WINGs: Add W_KeycodeToKeysym to replace XKeycodeToKeysym/XkbKeycodeToKeysym calls
commit15d06ff064f37cb9274c9bd54a81563a135b2da6
authorDavid Maciejak <david.maciejak@gmail.com>
Sun, 26 Feb 2023 00:40:14 +0000 (26 08:40 +0800)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 27 Feb 2023 22:37:44 +0000 (27 22:37 +0000)
tree6cb7f28348717830b1218561d1defbdc1e0c194f
parent2dd98666f16616ac44cdc2b25c47df737fa82da9
WINGs: Add W_KeycodeToKeysym to replace XKeycodeToKeysym/XkbKeycodeToKeysym calls

XKeycodeToKeysym was deprecated some time ago and we replaced
those function calls to XkbKeycodeToKeysym.
Usage of XkbKeycodeToKeysym is not the best as it appears
the XKEYBOARD can be disabled via xorg.conf (at least on Linux).
So just replacing XKeycodeToKeysym() with XkbKeycodeToKeysym()
could cause run-time errors on top of the compilation warning
we may have.
Better fix is to address the problem without introducing a
dependency on XKEYBOARD. W_KeycodeToKeysym is the equivalent
code for XKeycodeToKeysym/XkbKeycodeToKeysym using
XGetKeyboardMapping instead.

As a new function is added to the library WINGs library version
is bumped.
WINGs/ChangeLog
WINGs/NEWS
WINGs/WINGs/WINGs.h
WINGs/WINGs/WINGsP.h.in
WINGs/winputmethod.c
configure.ac