Enable grab-on-hover for SDL. Fixes #541
This commit is contained in:
parent
e97b57352c
commit
8c1d867110
4
quickemu
4
quickemu
@ -1223,6 +1223,10 @@ function vm_boot() {
|
|||||||
SHELL_ARGS="${SHELL_ARGS//Quickemu Project/\"Quickemu Project\"}"
|
SHELL_ARGS="${SHELL_ARGS//Quickemu Project/\"Quickemu Project\"}"
|
||||||
|
|
||||||
if [ ${VM_UP} -eq 0 ]; then
|
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"
|
echo "${QEMU}" "${SHELL_ARGS}" >> "${VMDIR}/${VMNAME}.sh"
|
||||||
${QEMU} "${args[@]}" > "${VMDIR}/${VMNAME}.log" &
|
${QEMU} "${args[@]}" > "${VMDIR}/${VMNAME}.log" &
|
||||||
sleep 0.25
|
sleep 0.25
|
||||||
|
Loading…
Reference in New Issue
Block a user