On Xubuntu 22.04.1 LTS, with the Xfce desktop environment, Alt+Tabbing away from SameBoy (to type in Discord, draw in Paint, etc) and then back will freeze the application. It no longer responds to mouse clicks or keyboard button presses, and the window must be closed. This doesn't happen 100% of the time but it's very frequent.
Can you try attaching a debugger (e.g. lldb -n sameboy) next time it happens and send me the output of the backtrace (bt) command and the compiled sameboy binary you're using?
On Xubuntu 22.04.1 LTS, with the Xfce desktop environment, Alt+Tabbing away from SameBoy (to type in Discord, draw in Paint, etc) and then back will freeze the application. It no longer responds to mouse clicks or keyboard button presses, and the window must be closed. This doesn't happen 100% of the time but it's very frequent.