From: Daniel Stone Date: Sat, 10 Mar 2012 14:42:30 +0000 (+0000) Subject: Use XKB_COMMON_* modifier defines in ExprResolveModMask X-Git-Tag: xkbcommon-0.2.0~740 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=645275406f47369c9a67d02173aedf89e9d2a33c;p=platform%2Fupstream%2Flibxkbcommon.git Use XKB_COMMON_* modifier defines in ExprResolveModMask Rather than the ones from XKB.h. Signed-off-by: Daniel Stone --- diff --git a/src/xkbcomp/expr.c b/src/xkbcomp/expr.c index 60467cd..3509bd5 100644 --- a/src/xkbcomp/expr.c +++ b/src/xkbcomp/expr.c @@ -189,15 +189,15 @@ SimpleLookup(const void * priv, xkb_atom_t field, unsigned type, } static const LookupEntry modIndexNames[] = { - {"shift", ShiftMapIndex}, - {"control", ControlMapIndex}, - {"lock", LockMapIndex}, - {"mod1", Mod1MapIndex}, - {"mod2", Mod2MapIndex}, - {"mod3", Mod3MapIndex}, - {"mod4", Mod4MapIndex}, - {"mod5", Mod5MapIndex}, - {"none", XkbNoModifier}, + {"shift", XKB_COMMON_SHIFT_MASK}, + {"control", XKB_COMMON_CONTROL_MASK}, + {"lock", XKB_COMMON_LOCK_MASK}, + {"mod1", XKB_COMMON_MOD1_MASK}, + {"mod2", XKB_COMMON_MOD2_MASK}, + {"mod3", XKB_COMMON_MOD3_MASK}, + {"mod4", XKB_COMMON_MOD4_MASK}, + {"mod5", XKB_COMMON_MOD5_MASK}, + {"none", 0xff}, {NULL, 0} };