Skip to content

Commit

Permalink
Enable grab-on-hover for SDL. Fixes #541
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Sep 20, 2022
1 parent e97b573 commit 8c1d867
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quickemu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c1d867

Please sign in to comment.