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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 9ddaf885..e0b2a7aa 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -1273,9 +1273,12 @@ meta_display_process_key_event (MetaDisplay *display,
/* window may be NULL */
+#ifdef HAVE_XKB
keysym = XKeycodeToKeysym (display->xdisplay, event->xkey.keycode, 0);
-
str = XKeysymToString (keysym);
+#else
+ str = NULL;
+#endif
/* was topic */
meta_topic (META_DEBUG_KEYBINDINGS,