我想捕捉鼠标按钮 2 的按下和单独释放。我想使用 xbindkeys 但 afaik 它没有给我这样的功能。(可以?)
这个: http: //developers-blog.org/blog/default/2010/08/10/XServer-Event-Handling-C-Example或多或少地解释了这些东西在我自己编写时是如何工作的。但是,当我添加 ButtonPressMask 时,我得到:
func: attach_to_focuswin
func: handle_event
X Error of failed request: BadAccess (attempt to access private resource denied)
Major opcode of failed request: 2 (X_ChangeWindowAttributes)
Serial number of failed request: 8
Current serial number in output stream: 8