graphic: 0.978 other: 0.952 device: 0.946 socket: 0.945 assembly: 0.940 semantic: 0.937 instruction: 0.929 boot: 0.927 vnc: 0.917 network: 0.905 mistranslation: 0.894 KVM: 0.887 Unable to release mouse in SDL2 mode Starting with commit 8f4ea9cd0b770dbe496d9d24f0ef8813fdbfe0d0 "sdl: prefer sdl2 over sdl1", I can no longer release mouse pointer grab unless I use --with-sdlabi=1.2 configure option. This easily reproduces in e.g. guest Kubuntu, when I let it start Xorg and then click into the QEMU window. After this the mouse is trapped and no matter how I combine Ctrl+Alt and motion of the cursor, the pointer never goes out from the window. When at the border, QEMU window switches from "Press Ctrl+Alt to exit grab" to "QEMU", i.e. it thinks that it has released the grab. But it hasn't really, so I have to go to VT1 and do "pkill qemu" from there to get my pointer back. Which version of SDL2 are you using? Could you please try to reproduce it with the latest version to see whether the problem has been fixed there? I'm using SDL2-2.0.5, which I believe is the latest already. I am seeing this on my system as well - the exact same symptoms. Has anyone investigated this problem? I'm also seeing this problem with -vga vmware in case that matters. Additionally 2ec78706d188df7d3dab43d07b19b05ef7800a44 also broke keyboard with SDL1 so that e.g. in a Windows password prompt backspace and enter just inserts chars instead of doing actions so now the workaround to avoid this bug (--with-sdlabi=1.2) is also unusable. Can you file a separate bug for the SDL1 backspace problem - it was not intended to cause problems like that. On Thu, 1 Feb 2018, Daniel Berrange wrote: > Can you file a separate bug for the SDL1 backspace problem - it was not > intended to cause problems like that. Unless you want it tracked in a bug I'm happy with a fix submitted to the list eventually without being separately tracked on launchpad. I would've reported this on the mailing list normally but since this is also relevant here due to SDL2 also not uasable beacause of this bug I've commented here so people affected by this know about both problems. workaround: don't click into the guest window before the tablet driver loads. When qemu mouse mode changes from relative to absolute we must turn off sdl relative mouse mode too. Fixes: https://bugs.launchpad.net/qemu/+bug/1703795 Signed-off-by: Gerd Hoffmann