summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixKey.c
diff options
context:
space:
mode:
authorstwo <stwo>2013-01-31 11:41:18 (GMT)
committerstwo <stwo>2013-01-31 11:41:18 (GMT)
commit169e48cdd00939a1b20756a05e89592f1db36c5e (patch)
tree45ce59bcddb014db163b1cef43f02bc642cdf6fa /unix/tkUnixKey.c
parent4682e1fb605d0fff7e8338f10080416e3e342cb9 (diff)
downloadtk-169e48cdd00939a1b20756a05e89592f1db36c5e.zip
tk-169e48cdd00939a1b20756a05e89592f1db36c5e.tar.gz
tk-169e48cdd00939a1b20756a05e89592f1db36c5e.tar.bz2
Bug [3599928]: Use XkbKeycodeToKeysym if available.
Diffstat (limited to 'unix/tkUnixKey.c')
-rw-r--r--unix/tkUnixKey.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/unix/tkUnixKey.c b/unix/tkUnixKey.c
index d07f13a..d2de6f7 100644
--- a/unix/tkUnixKey.c
+++ b/unix/tkUnixKey.c
@@ -11,6 +11,13 @@
*/
#include "tkInt.h"
+
+#ifdef HAVE_XKBKEYCODETOKEYSYM
+# include <X11/XKBlib.h>
+#else
+# define XkbKeycodeToKeysym(D,K,G,L) XKeycodeToKeysym(D,K,L)
+#endif
+
#include <X11/XKBlib.h>
/*