XCB 相当于 XkbSetDetectableAutoRepeat

XCB equivalent of XkbSetDetectableAutoRepeat

我是 运行 来自单独线程的代码,所以无法调用任何 Xlib 函数,我只能调用 XCB。我想知道 XkbSetDetectableAutoRepeat 的等价物是什么?

谢谢

XCB 提供了比 Xlib 更直接的协议视图,因此您通常必须查看协议规范或 Xlib 源代码以找出底层协议请求是什么才能找到等效协议。

在这种情况下,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 计算出正确的参数。