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 cf6cafb commit fe0f0c7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions quickemu
Original file line number Diff line number Diff line change
Expand Up @@ -847,15 +847,14 @@ function configure_display() {
# https://kevinlocke.name/bits/2021/12/10/windows-11-guest-virtio-libvirt/#video
case ${display} in
gtk|none|spice) DISPLAY_DEVICE="qxl-vga";;
sdl|spice-app) DISPLAY_DEVICE="virtio-vga";;
cocoa|sdl|spice-app) DISPLAY_DEVICE="virtio-vga";;
esac;;
*) DISPLAY_DEVICE="qxl-vga";;
esac

# Map Quickemu $display to QEMU -display
case ${display} in
cocoa) DISPLAY_RENDER="${display}"
DISPLAY_DEVICE="virtio-vga";;
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 @@ -1610,7 +1609,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="off";;
cocoa) gl="es";;
sdl) export SDL_MOUSE_FOCUS_CLICKTHROUGH=1;;
esac
}
Expand Down

0 comments on commit fe0f0c7

Please sign in to comment.