Enable grab-on-hover for SDL. Fixes #541

This commit is contained in:
Martin Wimpress 2022-09-20 14:18:19 +01:00
parent e97b57352c
commit 8c1d867110
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -1223,6 +1223,10 @@ function vm_boot() {
SHELL_ARGS="${SHELL_ARGS//Quickemu Project/\"Quickemu Project\"}"
if [ ${VM_UP} -eq 0 ]; then
# Enable grab-on-hover for SDL: https://github.com/quickemu-project/quickemu/issues/541
case "${OUTPUT}" in
sdl) export SDL_MOUSE_FOCUS_CLICKTHROUGH=1;;
esac
echo "${QEMU}" "${SHELL_ARGS}" >> "${VMDIR}/${VMNAME}.sh"
${QEMU} "${args[@]}" > "${VMDIR}/${VMNAME}.log" &
sleep 0.25