[PATCH] GetKeyboardValutorEvents: be even more careful
Don't accept devices without a keyboard feedback class.
This commit is contained in:
parent
0eb7299f44
commit
5436fce090
|
@ -4663,7 +4663,7 @@ int GetKeyboardValuatorEvents(xEvent *events, DeviceIntPtr pDev, int type,
|
||||||
if (type != KeyPress && type != KeyRelease)
|
if (type != KeyPress && type != KeyRelease)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (!pDev->key || !pDev->focus ||
|
if (!pDev->key || !pDev->focus || !pDev->kbdfeed ||
|
||||||
(pDev->coreEvents && !inputInfo.keyboard->key))
|
(pDev->coreEvents && !inputInfo.keyboard->key))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user