autorepeat keyPress only

Gideon gideontsang at
Thu Nov 23 00:10:29 PST 2006

Okay I got what you mean, but it is a function for the application.  In fact I want to modify the Xserver to do that.  I'm not sure about the design architecture but is that possible? If it's possible which file should I look into?

Gideon Tsang

Alan Coopersmith <alan.coopersmith at> wrote: Gideon wrote:
> //Hi all,
> I'm new to Xorg and I found the codes are quite hard to follow.
> Any suggestions to address the problem would be greatly appreciated.
> I figured the Xserver will filter the keyPress event from the keypad
> until a keyRelease is received, but I want it to repeat keyPress only
> as in the following:
> keyPress/keyPress/keyPress/......../keyRelease
> I am using version X11R6.8.2 so I couldn't find the function
>  ///XkbSetDetectableAutoRepeat or codes follow ///XPeekEvent regarding
> to this post:

XkbSetDetectableAutoRepeat is what you need, and it's been in libX11
since X11R6.4, so look again.

 -Alan Coopersmith-           alan.coopersmith at
  Sun Microsystems, Inc. - X Window System Engineering
The best gets better. See why everyone is raving about the All-new Yahoo! Mail.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the xorg mailing list