diff options
-rw-r--r-- | xkbcomp/compat.c | 5 | ||||
-rw-r--r-- | xkbcomp/parseutils.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/xkbcomp/compat.c b/xkbcomp/compat.c index 2b0014244..526224da1 100644 --- a/xkbcomp/compat.c +++ b/xkbcomp/compat.c @@ -655,14 +655,13 @@ HandleInterpDef(InterpDef * def, XkbDescPtr xkb, unsigned merge, if (!ResolveStateAndPredicate(def->match, &pred, &mods, info)) { - ERROR("Couldn't determine matching modifiers\n"); + if (warningLevel > 0) + WARN1("Couldn't determine matching modifiers\n"); ACTION("Symbol interpretation ignored\n"); return True; } if (def->ignore) { - ERROR("Couldn't lookup keysym\n"); - ACTION("Symbol interpretation ignored\n"); return True; } diff --git a/xkbcomp/parseutils.c b/xkbcomp/parseutils.c index 253cd9dae..025e1ef3f 100644 --- a/xkbcomp/parseutils.c +++ b/xkbcomp/parseutils.c @@ -230,7 +230,12 @@ InterpCreate(const char *sym_str, ExprDef * match) def->common.stmtType = StmtInterpDef; def->common.next = NULL; if (LookupKeysym(sym_str, &def->sym) == 0) + { def->ignore = True; + if (warningLevel > 0) + WARN1("Couldn't lookup keysym %s\n", sym_str); + ACTION("Symbol interpretation ignored\n"); + } else def->ignore = False; def->match = match; |