From 12908a78a15b6e42be103c0f291c5dc4f753992c Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 15 May 2024 13:14:06 +0100 Subject: [PATCH] . --- quickemu | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/quickemu b/quickemu index 16f7908678..813d7ce1e5 100755 --- a/quickemu +++ b/quickemu @@ -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}";; @@ -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 @@ -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 }