xkbcomp/keymap: correct ACTION_MODS_LOOKUP_MODS handling
authorRan Benita <ran234@gmail.com>
Wed, 19 Sep 2012 12:23:35 +0000 (15:23 +0300)
committerRan Benita <ran234@gmail.com>
Wed, 19 Sep 2012 12:23:35 +0000 (15:23 +0300)
commit9c2a5c6c61edfedc873cfe7a159f8d01377a13a0
tree41ca8c039677aca18452a26dc0d85a414af3fdf1
parent9aee332e9fd470580611d789d8265f983b199fde
xkbcomp/keymap: correct ACTION_MODS_LOOKUP_MODS handling

The xkblib spec says:
    If XkbSA_UseModMapMods is not set in the flags field, the mask,
    real_mods, vmods1, and vmods2 fields are used to determine the
    action modifiers. Otherwise they are ignored and the modifiers
    bound to the key (client map->modmap[keycode]) are used instead.

So we should just assign the modmap without considering what's there.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/keymap.c