diff options
author | Cole Robinson <crobinso@redhat.com> | 2014-03-13 15:30:23 -0400 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-03-17 14:34:28 +0100 |
commit | 298526fe92d0b35ea343f8ddcc3a1d54cb422494 (patch) | |
tree | c36896f3dd4fa690502a634daa001ef2d7205bc2 /ui | |
parent | 881249c79292b6883ecf4bdb79c11cc7dbdb4878 (diff) | |
download | qemu-298526fe92d0b35ea343f8ddcc3a1d54cb422494.zip qemu-298526fe92d0b35ea343f8ddcc3a1d54cb422494.tar.gz qemu-298526fe92d0b35ea343f8ddcc3a1d54cb422494.tar.bz2 |
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>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -346,7 +346,7 @@ static void gd_mouse_set(DisplayChangeListener *dcl, x, y, &x_root, &y_root); gdk_device_warp(gdk_device_manager_get_client_pointer(mgr), gtk_widget_get_screen(s->drawing_area), - x, y); + x_root, y_root); } #else static void gd_mouse_set(DisplayChangeListener *dcl, |