我有一个应用程序似乎抓住了鼠标(我可以移动它但不能点击任何地方),有没有办法找到哪个应用程序拥有 X.org 鼠标抓取?
Mec*_*ail 18
您可以通过按此提交中XF86LogGrabInfo引入的键来执行此操作。
默认情况下,此键符未绑定到任何物理键或组合键。但是您仍然可以使用xdotool
以下方法激活它:
xdotool key "XF86LogGrabInfo"
Run Code Online (Sandbox Code Playgroud)
执行该命令后,活动抓取列表将被记录到 X 日志中。至少在 Ubuntu 上,这是/var/log/Xorg.0.log
. 它将位于日志文件末尾附近的某个位置,但其下方可能有几条不相关的日志消息。如果没有抓斗,它写道:
[1199271.146] (II) Printing all currently active device grabs:
[1199271.146] (II) End list of active device grabs
Run Code Online (Sandbox Code Playgroud)
如果有抓取(在这里,我在 Firefox 中打开了一个菜单),它会记录如下内容:
[1199428.782] (II) Printing all currently active device grabs:
[1199428.782] Active grab 0x4c00000 (core) on device 'Virtual core pointer' (2):
[1199428.782] client pid 15620 /usr/lib/firefox/firefox
[1199428.782] at 1199423728 (from active grab) (device thawed, state 1)
[1199428.782] core event mask 0x7c
[1199428.782] owner-events true, kb 1 ptr 1, confine 0, cursor 0x0
[1199428.782] (II) End list of active device grabs
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3155 次 |
最近记录: |