summaryrefslogtreecommitdiff
path: root/src/xkbcomp/compat.c
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2013-11-30 22:25:39 +0200
committerRan Benita <ran234@gmail.com>2013-11-30 22:28:13 +0200
commitdbd8b1ef8dafa8ab84ca7090205241661ac01a45 (patch)
tree6e15f327b9f6a54d35dc126650bd22bcc00cdc70 /src/xkbcomp/compat.c
parent9dc5b8cb6097c5bfd61dbe6a17b59aa8fe9638e5 (diff)
downloadlibxkbcommon-dbd8b1ef8dafa8ab84ca7090205241661ac01a45.tar.gz
libxkbcommon-dbd8b1ef8dafa8ab84ca7090205241661ac01a45.tar.bz2
libxkbcommon-dbd8b1ef8dafa8ab84ca7090205241661ac01a45.zip
expr: add 'ident' value to ExprDef union
This distinguishes between an identifier expression and a string expression in the union. Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/xkbcomp/compat.c')
-rw-r--r--src/xkbcomp/compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xkbcomp/compat.c b/src/xkbcomp/compat.c
index 9e17cbb..0775a98 100644
--- a/src/xkbcomp/compat.c
+++ b/src/xkbcomp/compat.c
@@ -444,7 +444,7 @@ ResolveStateAndPredicate(ExprDef *expr, enum xkb_match_operation *pred_rtrn,
}
else if (expr->op == EXPR_IDENT) {
const char *pred_txt = xkb_atom_text(info->keymap->ctx,
- expr->value.str);
+ expr->value.ident);
if (pred_txt && istreq(pred_txt, "any")) {
*pred_rtrn = MATCH_ANY;
*mods_rtrn = MOD_REAL_MASK_ALL;