Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed May 15, 2024
1 parent fe0f0c7 commit 12908a7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions quickemu
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,6 @@ function configure_display() {

# Map Quickemu $display to QEMU -display
case ${display} in
cocoa) DISPLAY_RENDER="${display},gl=${gl}";;
gtk) DISPLAY_RENDER="${display},grab-on-hover=on,zoom-to-fit=off,gl=${gl}";;
none|spice) DISPLAY_RENDER="none";;
sdl) DISPLAY_RENDER="${display},gl=${gl}";;
Expand Down Expand Up @@ -1582,9 +1581,8 @@ function display_param_check() {

if [ "${OS_KERNEL}" == "Darwin" ]; then
if [ "${display}" != "cocoa" ] && [ "${display}" != "none" ]; then
echo "WARNING! Requested output '${display}' but only 'cocoa' is avalible on macOS."
echo " Setting display to 'cocoa'."
display="cocoa"
echo "ERROR! Requested output '${display}' but only 'cocoa' and 'none' are avalible on macOS."
exit 1
fi
else
if [ "${display}" != "gtk" ] && [ "${display}" != "none" ] && [ "${display}" != "sdl" ] && [ "${display}" != "spice" ] && [ "${display}" != "spice-app" ]; then
Expand All @@ -1609,7 +1607,7 @@ function display_param_check() {
# Disable GL for cocoa
# Enable grab-on-hover for SDL: https://github.com/quickemu-project/quickemu/issues/541
case "${display}" in
cocoa) gl="es";;
cocoa) gl="off";;
sdl) export SDL_MOUSE_FOCUS_CLICKTHROUGH=1;;
esac
}
Expand Down

0 comments on commit 12908a7

Please sign in to comment.