Fix key repeat problem.

Signed-off-by: Kim Woelders <kim@woelders.dk>
This commit is contained in:
Kim Woelders 2009-07-11 18:55:17 +02:00 committed by Keith Packard
parent 606f6dba16
commit b10c4fe343

View File

@ -1161,7 +1161,7 @@ EnqueueEvent(xEvent *xE, DeviceIntPtr device, int count)
#ifdef XKB
/* Fix for key repeating bug. */
if (device->key != NULL && device->key->xkbInfo != NULL &&
xE->u.u.type == KeyRelease)
(xE->u.u.type == KeyRelease || xE->u.u.type == DeviceKeyRelease))
AccessXCancelRepeatKey(device->key->xkbInfo, xE->u.u.detail);
#endif