Set the detail field for DeviceKeyEvents to the keycode.

(cherry picked from commit 0c33dc152e)
This commit is contained in:
Peter Hutterer 2007-06-21 15:47:48 +09:30
parent 87564543d9
commit 8e5102b9f0

View File

@ -446,6 +446,7 @@ GetKeyboardValuatorEvents(xEvent *events, DeviceIntPtr pDev, int type,
kbp = (deviceKeyButtonPointer *) events;
kbp->time = ms;
kbp->deviceid = pDev->id;
kbp->detail = key_code;
if (type == KeyPress)
kbp->type = DeviceKeyPress;
else if (type == KeyRelease)