diff options
author | Daniel Stone <daniel@fooishbar.org> | 2012-09-11 12:28:29 +0100 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2012-09-11 12:28:29 +0100 |
commit | a8d462e3669b1790dfad75836d5ec59e390392ef (patch) | |
tree | 137cc78594b1a588327dc4e8391d8698db4556de /src/xkbcomp/keymap.c | |
parent | ed9fd5beb001c30c7292e9a31d7ebccd4e91a973 (diff) | |
download | libxkbcommon-a8d462e3669b1790dfad75836d5ec59e390392ef.tar.gz libxkbcommon-a8d462e3669b1790dfad75836d5ec59e390392ef.tar.bz2 libxkbcommon-a8d462e3669b1790dfad75836d5ec59e390392ef.zip |
kbproto unentanglement: XkbSI match flags
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'src/xkbcomp/keymap.c')
-rw-r--r-- | src/xkbcomp/keymap.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/xkbcomp/keymap.c b/src/xkbcomp/keymap.c index 210ccac..4bad351 100644 --- a/src/xkbcomp/keymap.c +++ b/src/xkbcomp/keymap.c @@ -100,25 +100,25 @@ FindInterpForKey(struct xkb_keymap *keymap, struct xkb_key *key, interp->sym != XKB_KEY_NoSymbol) continue; - if (level == 0 || !(interp->match & XkbSI_LevelOneOnly)) + if (level == 0 || !(interp->match & MATCH_LEVEL_ONE_ONLY)) mods = key->modmap; else mods = 0; - switch (interp->match & XkbSI_OpMask) { - case XkbSI_NoneOf: + switch (interp->match & MATCH_OP_MASK) { + case MATCH_NONE: found = !(interp->mods & mods); break; - case XkbSI_AnyOfOrNone: + case MATCH_ANY_OR_NONE: found = (!mods || (interp->mods & mods)); break; - case XkbSI_AnyOf: + case MATCH_ANY: found = !!(interp->mods & mods); break; - case XkbSI_AllOf: + case MATCH_ALL: found = ((interp->mods & mods) == interp->mods); break; - case XkbSI_Exactly: + case MATCH_EXACTLY: found = (interp->mods == mods); break; default: @@ -162,7 +162,7 @@ ApplyInterpsToKey(struct xkb_keymap *keymap, struct xkb_key *key) continue; if ((group == 0 && level == 0) || - !(interp->match & XkbSI_LevelOneOnly)) { + !(interp->match & MATCH_LEVEL_ONE_ONLY)) { if (interp->virtual_mod != XKB_MOD_INVALID) vmodmask |= (1 << interp->virtual_mod); } |