From 3c82397d3fdbbaa8d1614a6f5eeeaad4ef20d3f6 Mon Sep 17 00:00:00 2001 From: Scott Balneaves Date: Tue, 20 Nov 2012 22:50:33 -0600 Subject: Fix deprecations and compile warnings. Clean compile --- src/core/keybindings.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/keybindings.c') 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); -- cgit v1.2.1