From 897be1b007ea4789a88716d5889e5b9f8c88fbf7 Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 24 Oct 2014 14:01:20 +0200 Subject: Properly ifdef some KXB code. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Taken out of metacity commit: 238e83a98cf014c9b1082d21541e63f102d441d6 From: Alberts Muktupāvels --- src/core/keybindings.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/core/keybindings.c') 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, -- cgit v1.2.1