summaryrefslogtreecommitdiff
path: root/src/core/display.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/display.c')
-rw-r--r--src/core/display.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/display.c b/src/core/display.c
index eccb5497..a66dfc9f 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -2805,7 +2805,11 @@ key_event_description (Display *xdisplay,
KeySym keysym;
const char *str;
+#ifdef HAVE_XKB
+ keysym = XkbKeycodeToKeysym (xdisplay, event->xkey.keycode, 0, 0);
+#else
keysym = XKeycodeToKeysym (xdisplay, event->xkey.keycode, 0);
+#endif
str = XKeysymToString (keysym);