diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2015-11-03 09:01:19 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2015-11-04 07:54:00 +1000 |
commit | 26d1c57a938ce5c0d4fd9d645ace25308e6a7070 (patch) | |
tree | 35f05376a09a316e921ee98d2142f5a404b989dc | |
parent | 511adde23a0518db0379b444580b63edcb9138a8 (diff) |
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>
-rw-r--r-- | symbols.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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", |