diff options
Diffstat (limited to 'src/evdev.c')
-rw-r--r-- | src/evdev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c index aafbbe5..865b451 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -164,6 +164,10 @@ PostKbdEvent(InputInfoPtr pInfo, struct input_event *ev, int value) warned[ev->code] = 1; } + /* The X server can't handle keycodes > 255 anyway, just drop them. */ + if (code > 255) + return; + xf86PostKeyboardEvent(pInfo->dev, code, value); } |