summaryrefslogtreecommitdiff
path: root/src/core/keybindings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/keybindings.c')
-rw-r--r--src/core/keybindings.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 8dda13cd..07384b22 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -1273,7 +1273,11 @@ meta_display_process_key_event (MetaDisplay *display,
/* window may be NULL */
+#ifdef HAVE_XKB
+ keysym = XkbKeycodeToKeysym (display->xdisplay, event->xkey.keycode, 0, 0);
+#else
keysym = XKeycodeToKeysym (display->xdisplay, event->xkey.keycode, 0);
+#endif
str = XKeysymToString (keysym);