[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 2/3] gtk: Fix mouse warping with gtk3

From: Gerd Hoffmann
Subject: [Qemu-devel] [PULL 2/3] gtk: Fix mouse warping with gtk3
Date: Fri, 14 Mar 2014 10:53:27 +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 016804d..e2394ac 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);
-                    x, y);
+                    x_root, y_root);
 static void gd_mouse_set(DisplayChangeListener *dcl,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]