Commit d5c2cb7b authored by Matthias Clasen's avatar Matthias Clasen

Avoid segfault on xkbless systems

This was reported in bug 628932 to cause problems on VNC.
parent 87b19277
......@@ -1822,7 +1822,9 @@ gdk_keymap_map_virtual_modifiers (GdkKeymap *keymap,
keymap = GET_EFFECTIVE_KEYMAP (keymap);
keymap_x11 = GDK_KEYMAP_X11 (keymap);
get_xkb (keymap_x11);
if (KEYMAP_USE_XKB (keymap))
get_xkb (keymap_x11);
retval = TRUE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment