Changeset View
Changeset View
Standalone View
Standalone View
head/devel/allegro/files/patch-src_x_xkeyboard.c
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- 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"); |