[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 6/7] gtk: Fix mouse warping with gtk3
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 6/7] gtk: Fix mouse warping with gtk3 |
Date: |
Thu, 13 Mar 2014 11:46:11 +0100 |
From: Cole Robinson <address@hidden>
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 <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
ui/gtk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/gtk.c b/ui/gtk.c
index 79babc9..330dc13 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -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,
--
1.8.3.1
- [Qemu-devel] [PULL 0/7] gtk: cleanups and fixes, Gerd Hoffmann, 2014/03/13
- [Qemu-devel] [PULL 1/7] gtk: Allow to activate grab-on-hover from the command line, Gerd Hoffmann, 2014/03/13
- [Qemu-devel] [PULL 2/7] gtk: Don't use deprecated gtk_image_menu_item_new_with_mnemonic, Gerd Hoffmann, 2014/03/13
- [Qemu-devel] [PULL 3/7] gtk: Don't use deprecated vte_terminal_get_adjustment, Gerd Hoffmann, 2014/03/13
- [Qemu-devel] [PULL 6/7] gtk: Fix mouse warping with gtk3,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 5/7] gtk: Use ctrl+alt+q for quit accelerator, Gerd Hoffmann, 2014/03/13
- [Qemu-devel] [PULL 4/7] gtk: Remove use of deprecated stock items, Gerd Hoffmann, 2014/03/13
- [Qemu-devel] [PULL 7/7] gtk: Don't warp absolute pointer, Gerd Hoffmann, 2014/03/13
- Re: [Qemu-devel] [PULL 0/7] gtk: cleanups and fixes, Peter Maydell, 2014/03/13