diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2021-01-21 13:24:00 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2021-01-21 14:12:58 +1000 |
commit | da810f10d732a312ccee88652141c1d165efc114 (patch) | |
tree | f580e9c80cf0ce4d794e597c800486a14c96d6e7 /keycodes.c | |
parent | 80398db098b2a2214c5bef28d09cefd58beac43d (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>
Diffstat (limited to 'keycodes.c')
-rw-r--r-- | keycodes.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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; |