[Top][All Lists]

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

[Qemu-devel] [PATCH 5/5] gtk: update mouse position in mouse_set()

From: Gerd Hoffmann
Subject: [Qemu-devel] [PATCH 5/5] gtk: update mouse position in mouse_set()
Date: Tue, 5 May 2015 13:27:46 +0200

Without that the next mouse motion event uses the old position
as base for relative move calculation, giving wrong results and
making your mouse pointer jump around.

Signed-off-by: Gerd Hoffmann <address@hidden>
 ui/gtk.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ui/gtk.c b/ui/gtk.c
index 8b1458f..c58028f 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -463,6 +463,8 @@ static void gd_mouse_set(DisplayChangeListener *dcl,
                     x_root, y_root);
+    vc->s->last_x = x;
+    vc->s->last_y = y;
 static void gd_mouse_set(DisplayChangeListener *dcl,

reply via email to

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