Add -display SDL grab-on-hover option
This bug has been copied automatically from: https://bugs.launchpad.net/qemu/+bug/1884302 <pre>I'm using QEMU 5.0.0 on a Gentoo Linux host system. Guest is an Arch Linux system. I'd like to disable automatic mouse grabbing when the QEMU window is focused. I would prefer for QEMU to grab the mouse only after a click. I use the i3 window manager on my host system. Suppose I'm in workspace 1, while the QEMU window is in workspace 2. In order to switch to workspace 2, I need to press the "Win+2" key combination ("Win" is the Windows key). The problem is that the character "2" (from "Win+2") will get transferred to the guest system. For example, if I have a text editor opened under the guest system, the character "2" will be pasted inside the document I'm working on, which is pretty annoying. I would like instead to press the "Win+2" key combination and then explicitely click on the QEMU window with the mouse before grabbing it. Command line: qemu&#45;system&#45;x86_64 &#45;drive file=/home/fturco/qemu/arch.img,media=disk,index=0,if=virtio,format=raw,cache=none &#45;cpu host &#45;m 2G &#45;k it &#45;enable&#45;kvm &#45;net nic,model=virtio &#45;net user &#45;vga virtio &#45;display sdl &#45;usb &#45;rtc base=utc &#45;soundhw ac97 &#45;monitor stdio &#45;no&#45; quit </pre>
issue