From e63f76caa1b1342422567fdcb9f8af24792c8ca1 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 6 Oct 2005 17:55:54 +0000 Subject: [PATCH] Sun bug #6326551: xkbSetDetectableAutoRepeat broken when using XEvIE (Derek Wang, Sun Microsystems) --- Xext/xevie.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Xext/xevie.c b/Xext/xevie.c index fa9568c9e..09839a98e 100644 --- a/Xext/xevie.c +++ b/Xext/xevie.c @@ -696,9 +696,13 @@ doSendEvent(xEvent *xE, DeviceIntPtr dev) } dev->key->modifierMap[xE->u.u.detail] = 0; + if(dev->key->xkbInfo->repeatKey != 0 && xE->u.u.type != KeyPress) + XkbLastRepeatEvent= (pointer)xE; UNWRAP_INPUTPROC(dev,xeviep); dev->public.processInputProc(xE,dev,1); COND_WRAP_INPUTPROC(dev,xeviep,tmp); + XkbLastRepeatEvent= NULL; + dev->key->modifierMap[xE->u.u.detail] = realModes; dev->key = keyc; if(notFound) {