mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-24 09:44:28 +00:00
Forward keycodes > 255
The server doesn't handle them yet but eventually it should learn. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
14
src/evdev.c
14
src/evdev.c
@@ -255,7 +255,6 @@ void
|
||||
EvdevQueueKbdEvent(InputInfoPtr pInfo, struct input_event *ev, int value)
|
||||
{
|
||||
int code = ev->code + MIN_KEYCODE;
|
||||
static char warned[KEY_CNT];
|
||||
EventQueuePtr pQueue;
|
||||
EvdevPtr pEvdev = pInfo->private;
|
||||
|
||||
@@ -273,19 +272,6 @@ EvdevQueueKbdEvent(InputInfoPtr pInfo, struct input_event *ev, int value)
|
||||
)
|
||||
return;
|
||||
|
||||
if (code > 255)
|
||||
{
|
||||
if (ev->code <= KEY_MAX && !warned[ev->code])
|
||||
{
|
||||
xf86Msg(X_WARNING, "%s: unable to handle keycode %d\n",
|
||||
pInfo->name, ev->code);
|
||||
warned[ev->code] = 1;
|
||||
}
|
||||
|
||||
/* The X server can't handle keycodes > 255. */
|
||||
return;
|
||||
}
|
||||
|
||||
if (pEvdev->num_queue >= EVDEV_MAXQUEUE)
|
||||
{
|
||||
xf86Msg(X_NONE, "%s: dropping event due to full queue!\n", pInfo->name);
|
||||
|
||||
Reference in New Issue
Block a user