问题
I was running code from a separate thread, so couldn't call any Xlib functions, I can only call XCB. I was wondering what the equivalent for XkbSetDetectableAutoRepeat
would be?
Thanks
回答1:
XCB presents a more direct view of the protocol than Xlib does, so you often have to look at either the protocol specs or Xlib source code to find out what the underlying protocol request is to find an equivalent.
In this case, the Detectable Autorepeat section of the XKB extension spec says it uses the XkbPerClientFlags request, which in turn maps to the xcb_xkb_per_client_flags() function. Unfortunately, there's no documentation written for this xcb function yet, so you have to use the details from the XKB extension spec and the code for the Xlib implementation to work out the right arguments.
来源:https://stackoverflow.com/questions/36532918/xcb-equivalent-of-xkbsetdetectableautorepeat