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>
This commit is contained in:
Peter Hutterer
2008-10-16 22:35:42 +10:30
committed by Julien Cristau
parent 0089d931ac
commit 7243116f55

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