sdl.c received a fix for relative mouse mode, but it wasn't copied to sdl2.c.
Patch #2 uses new SDL2 API to make relative mode behave similar to sdl.c, but I'm not fully confident that it's safe. See patch comments. Also, relative mode is a mess in gtk as well. I started fixing these only to find that patches were already posted: https://lists.gnu.org/archive/html/qemu-devel/2014-02/msg02278.html Cole Robinson (2): input: sdl2: Fix guest_cursor logic input: sdl2: Fix relative mode to match SDL1 behavior ui/sdl2.c | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) -- 1.9.0