diff options
author | stwo@users.sourceforge.net <stwo> | 2013-01-31 11:49:40 (GMT) |
---|---|---|
committer | stwo@users.sourceforge.net <stwo> | 2013-01-31 11:49:40 (GMT) |
commit | 4230673f19f731048e0f2bb1cd69405637dab9a0 (patch) | |
tree | f4c252e3e6b2111bca073a339f2d074d97450a7f /unix/tkUnixKey.c | |
parent | b22617b435e40b03dc95e621069b84cc37b9fa29 (diff) | |
download | tk-4230673f19f731048e0f2bb1cd69405637dab9a0.zip tk-4230673f19f731048e0f2bb1cd69405637dab9a0.tar.gz tk-4230673f19f731048e0f2bb1cd69405637dab9a0.tar.bz2 |
Bug [3599928]: Use XkbKeycodeToKeysym if available.
Diffstat (limited to 'unix/tkUnixKey.c')
-rw-r--r-- | unix/tkUnixKey.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/unix/tkUnixKey.c b/unix/tkUnixKey.c index b7fc97f..ef5b22c 100644 --- a/unix/tkUnixKey.c +++ b/unix/tkUnixKey.c @@ -11,7 +11,12 @@ */ #include "tkInt.h" -#include <X11/XKBlib.h> + +#ifdef HAVE_XKBKEYCODETOKEYSYM +# include <X11/XKBlib.h> +#else +# define XkbKeycodeToKeysym(D,K,G,L) XKeycodeToKeysym(D,K,L) +#endif /* * Prototypes for local functions defined in this file: |