summaryrefslogtreecommitdiff
path: root/devel/allegro/files/patch-src_x_xkeyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/allegro/files/patch-src_x_xkeyboard.c')
-rw-r--r--devel/allegro/files/patch-src_x_xkeyboard.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/devel/allegro/files/patch-src_x_xkeyboard.c b/devel/allegro/files/patch-src_x_xkeyboard.c
new file mode 100644
index 000000000000..ed66ac2f7ec7
--- /dev/null
+++ b/devel/allegro/files/patch-src_x_xkeyboard.c
@@ -0,0 +1,19 @@
+--- src/x/xkeyboard.c.orig 2010-12-08 08:13:50 UTC
++++ src/x/xkeyboard.c
+@@ -23,6 +23,7 @@
+ #include <X11/Xos.h>
+ #include <X11/Xlib.h>
+ #include <X11/Xutil.h>
++#include <X11/XKBlib.h>
+ #include <X11/Xproto.h>
+
+ #include "allegro.h"
+@@ -617,7 +618,7 @@ void _xwin_get_keyboard_mapping(void)
+
+ TRACE (PREFIX_I "Modifier %d:", i + 1);
+ for (j = 0; j < xmodmap->max_keypermod; j++) {
+- KeySym sym = XKeycodeToKeysym(_xwin.display,
++ KeySym sym = XkbKeycodeToKeysym(_xwin.display, 0,
+ xmodmap->modifiermap[i * xmodmap->max_keypermod + j], 0);
+ char *sym_str = XKeysymToString(sym);
+ TRACE(" %s", sym_str ? sym_str : "NULL");