summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-01-21 13:24:00 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-01-21 14:12:58 +1000
commitda810f10d732a312ccee88652141c1d165efc114 (patch)
treef580e9c80cf0ce4d794e597c800486a14c96d6e7
parent80398db098b2a2214c5bef28d09cefd58beac43d (diff)
keycodes: compress the high keycode warning
No point spending 3 lines on this, especially given that this warning is always triggered. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--keycodes.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/keycodes.c b/keycodes.c
index 51eeefb..4a8973c 100644
--- a/keycodes.c
+++ b/keycodes.c
@@ -334,10 +334,8 @@ AddKeyName(KeyNamesInfo * info,
{
if (!high_keycode_warned && warningLevel > 1)
{
- INFO("Unsupported high keycode %d for name <%s> ignored\n",
+ INFO("Keycodes above %d (e.g. <%s>) are not supported by X and are ignored\n",
kc, name);
- ACTION("X11 cannot support keycodes above 255.\n");
- ACTION("This warning only shows for the first high keycode.\n");
high_keycode_warned = True;
}
return True;
@@ -598,10 +596,8 @@ HandleKeycodeDef(KeycodeDef * stmt, unsigned merge, KeyNamesInfo * info)
{
if (!high_keycode_warned && warningLevel > 1)
{
- INFO("Unsupported high keycode %d for name <%s> ignored\n",
+ INFO("Keycodes above %d (e.g. <%s>) are not supported by X and are ignored\n",
code, stmt->name);
- ACTION("X11 cannot support keycodes above 255.\n");
- ACTION("This warning only shows for the first high keycode.\n");
high_keycode_warned = True;
}
return 1;