[Xcb] How does one detect key repeat events in XCB?

Nicholas Allen nick.allen at onlinehome.de
Fri Jan 27 14:51:56 PST 2012


I would like to know how to detect if a key release event is a real key 
release event by the user or a repeated key press/release event sent by 
the X server. After searching for a solution for this it seems one needs 
to check if the next event in the queue is the same key as the release 
event and is a press with the same time then it is a repeat. To do this 
with Xlib you need to call XPeekNextEvent but I can't find the 
equivalent for XCB. What is the correct way to do this?

Nicholas Allen

More information about the Xcb mailing list