summaryrefslogtreecommitdiff
path: root/symbols.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-11-03 09:01:19 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-11-04 07:54:00 +1000
commit26d1c57a938ce5c0d4fd9d645ace25308e6a7070 (patch)
tree35f05376a09a316e921ee98d2142f5a404b989dc /symbols.c
parent511adde23a0518db0379b444580b63edcb9138a8 (diff)
downloadxorg-app-xkbcomp-26d1c57a938ce5c0d4fd9d645ace25308e6a7070.tar.gz
symbols: increase the warning level for shortening a key type
Any use of the german keyboard layout or anything else using level3(ralt_switch) produces the warning Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols Ignoring extra symbols This warning is meaningless, the default definition for RALT comes from pc(pc105) including altwin(meta_alt) which defines it as TWO_LEVEL and { Alt_R, Meta_R }. Including level3(ralt_switch) correctly sets it as ONE_LEVEL but now we get the warning. That makes users file bug reports and we can't be having that, can we? Up the warning level for this case to one past the default. The warning is only useful when you're testing a new keyboard layout or trying to fix an actual bug with missing symbols. And then you can run xkbcomp with -w10. No need to spam the log on every server startup. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'symbols.c')
-rw-r--r--symbols.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/symbols.c b/symbols.c
index d43ba9f..b5738c9 100644
--- a/symbols.c
+++ b/symbols.c
@@ -2030,7 +2030,7 @@ CopySymbolsDef(XkbFileInfo * result, KeyInfo * key, int start_from)
type = &xkb->map->types[types[i]];
if (type->num_levels < key->numLevels[i])
{
- if (warningLevel > 0)
+ if (warningLevel > 5)
{
WARN4
("Type \"%s\" has %d levels, but %s has %d symbols\n",