Workaround for broken mouse click functionality when debugging Factorio in a mouse event
Posted: Thu Nov 02, 2023 5:36 pm
I was using the modding toolkit debugger with a breakpoint that triggered when I clicked on something in-game. This left my mouse clicks captured by factorio, so I couldn't click on anything anywhere else while other mouse and keyboard functionality worked fine.
https://unix.stackexchange.com/a/62252/2434 led me to `xdotool key "XF86LogGrabInfo"` which puts a list of active and registered input grabs into `Xorg.0.log`, where I found factorio with the sole grab and a mask for clicks.
https://unix.stackexchange.com/a/40472/2434 led me to `setxkbmap -option grab:break_actions; xdotool key XF86Ungrab` to release the grab!
https://unix.stackexchange.com/a/62252/2434 led me to `xdotool key "XF86LogGrabInfo"` which puts a list of active and registered input grabs into `Xorg.0.log`, where I found factorio with the sole grab and a mask for clicks.
https://unix.stackexchange.com/a/40472/2434 led me to `setxkbmap -option grab:break_actions; xdotool key XF86Ungrab` to release the grab!