Skip to content

Instantly share code, notes, and snippets.

@wpyoga
Created August 11, 2025 05:13
Show Gist options
  • Save wpyoga/94ab9a6865e72de881266341af4306e6 to your computer and use it in GitHub Desktop.
Save wpyoga/94ab9a6865e72de881266341af4306e6 to your computer and use it in GitHub Desktop.
Xorg grab problem (usually VirtualBox)
https://gist.github.com/CyberShadow/6412d11aea64144f8905cc0b8196f38e
$ xdotool key XF86LogGrabInfo
/var/log/Xorg.0.log:
```
[146599.664] (II) Printing all currently active device grabs:
[146599.664] Active grab 0x42a001f7 (core) on device 'Virtual core pointer' (2):
[146599.664] client pid 91115 /usr/lib/virtualbox/VirtualBoxVM --comment wintpc-2 --startvm {0d02dc3f-7a59-47a8-b72d-6a4ab49ff93d}
[146599.664] at 146394073 (from passive grab) (device frozen, state 6)
[146599.664] core event mask 0x4
[146599.664] passive grab type 4, detail 0x0, activating key 0
[146599.664] owner-events false, kb 1 ptr 0, confine 0, cursor 0x0
[146599.664] (II) End list of active device grabs
```
```
[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
```
https://unix.stackexchange.com/questions/59141/find-x-org-pointer-grab-owner
https://unix.stackexchange.com/questions/40458/command-for-forcing-a-pointer-ungrab-captured-mouse-release
setxkbmap -option grab:break_actions
xdotool key XF86Ungrab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment