[PATCH] GetKeyboardValutorEvents: be even more careful

Don't accept devices without a keyboard feedback class.
This commit is contained in:
Daniel Stone 2006-08-29 13:21:40 +03:00 committed by Daniel Stone
parent 0eb7299f44
commit 5436fce090

View File

@ -4663,7 +4663,7 @@ int GetKeyboardValuatorEvents(xEvent *events, DeviceIntPtr pDev, int type,
if (type != KeyPress && type != KeyRelease)
return 0;
if (!pDev->key || !pDev->focus ||
if (!pDev->key || !pDev->focus || !pDev->kbdfeed ||
(pDev->coreEvents && !inputInfo.keyboard->key))
return 0;