mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-04 15:20:34 +01:00
[PATCH] GetKeyboardValutorEvents: be even more careful
Don't accept devices without a keyboard feedback class.
This commit is contained in:
parent
0eb7299f44
commit
5436fce090
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue