使用Xlib,可以查询当前X服务器时间吗?我的意思是将在 time
中返回的值领域XEvent
如果我们现在要接收一个事件。
最好不要打开任何 window 。
最佳答案
也许 this是您要搜索的内容:
The only system counter that is guaranteed to be present is called SERVERTIME, which counts milliseconds from some arbitrary starting point. The least significant 32 bits of this counter track the value of Time used by the server in Events and Requests. Other system counters may be provided by different implementations of the extension. The X Consortium will maintain a registry of system counter names to avoid collisions in the name space.
关于c - 获取当前 X11 服务器时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61849695/