XCB equivalent of XkbSetDetectableAutoRepeat

与世无争的帅哥 提交于 2019-12-24 01:43:17

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!