]> git.proxmox.com Git - mirror_qemu.git/commit - ui/gtk.c
gtk: Fix mouse warping with gtk3
authorCole Robinson <crobinso@redhat.com>
Thu, 13 Mar 2014 19:30:23 +0000 (15:30 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 17 Mar 2014 13:34:28 +0000 (14:34 +0100)
commit298526fe92d0b35ea343f8ddcc3a1d54cb422494
treec36896f3dd4fa690502a634daa001ef2d7205bc2
parent881249c79292b6883ecf4bdb79c11cc7dbdb4878
gtk: Fix mouse warping with gtk3

We were using the wrong coordinates, this fixes things to match the
original gtk2 implementation.

You can see this error in action by using -vga qxl, however even after this
patch the mouse warps in small increments up and to the left, -7x and -3y
pixels at a time, until the pointer is warped off the widget. I think it's
a qxl bug, but the next patch covers it up.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/gtk.c