Don't post keycodes > 255.

If we only have keys > 255 we don't set up a key class rec, so don't post
them. It makes the server unhappy.

Signed-off-by: Julien Cristau <jcristau@debian.org>
(cherry picked from commit 7243116f55)
This commit is contained in:
Peter Hutterer
2008-10-16 22:35:42 +10:30
committed by Peter Hutterer
parent 708eb34599
commit cab104fd9e

View File

@@ -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);
}