XCB equivalent of XkbSetDetectableAutoRepeat

2019-07-08 09:23发布

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

标签: x11 xcb
1条回答
姐就是有狂的资本
2楼-- · 2019-07-08 09:55

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.

查看更多
登录 后发表回答