Avoid segfault on xkbless systems

This was reported in bug 628932 to cause problems on VNC.
This commit is contained in:
Matthias Clasen 2010-09-07 00:10:26 -04:00
parent 87b192773c
commit d5c2cb7bcb

View File

@ -1822,6 +1822,8 @@ gdk_keymap_map_virtual_modifiers (GdkKeymap *keymap,
keymap = GET_EFFECTIVE_KEYMAP (keymap);
keymap_x11 = GDK_KEYMAP_X11 (keymap);
if (KEYMAP_USE_XKB (keymap))
get_xkb (keymap_x11);
retval = TRUE;