XCB等效于XkbSetDetectableAutoRepeat [英] XCB equivalent of XkbSetDetectableAutoRepeat

查看:139
本文介绍了XCB等效于XkbSetDetectableAutoRepeat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从一个单独的线程运行代码,因此无法调用任何Xlib函数,只能调用XCB.我想知道XkbSetDetectableAutoRepeat的等效值是什么?

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?

谢谢

推荐答案

与Xlib相比,XCB提供了更直接的协议视图,因此您通常必须查看协议规范或Xlib源代码才能了解协议的含义.底层协议请求是找到一个等效项.

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.

在这种情况下, XKB扩展规范表示它使用了 XkbPerClientFlags 请求,该请求又映射到用于Xlib实现的代码,用于确定正确的参数.

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.

这篇关于XCB等效于XkbSetDetectableAutoRepeat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆