xkbcomp/keymap: use default interpret in ApplyInterpsToKey
authorRan Benita <ran234@gmail.com>
Thu, 27 Sep 2012 07:19:12 +0000 (09:19 +0200)
committerRan Benita <ran234@gmail.com>
Thu, 27 Sep 2012 19:12:08 +0000 (21:12 +0200)
commit53cfe8c36211fe3d1fb7576d2c9498f7f67ea6af
tree54ff40742c527e856cda5275c49c96de02248814
parent11df063265655f2c165c80bb1e6e30f443dffd68
xkbcomp/keymap: use default interpret in ApplyInterpsToKey

This makes the code easier to follow and does more explicitly what the
xkblib spec says:
     If no matching symbol interpretation is found, the server uses a
     default interpretation where:
        sym = 0
        flags = XkbSI_AutoRepeat
        match = XkbSI_AnyOfOrNone
        mods = 0
        virtual_mod = XkbNoModifier
        act = SA_NoAction

If a level doesn't have any keysyms, we don't apply anything to it.

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