Commit 1271f7f7 authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

gtk: update mouse position in mouse_set()



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: default avatarGerd Hoffmann <kraxel@redhat.com>
parent dc7ff344
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -463,6 +463,8 @@ static void gd_mouse_set(DisplayChangeListener *dcl,
    gdk_device_warp(gdk_device_manager_get_client_pointer(mgr),
                    gtk_widget_get_screen(vc->gfx.drawing_area),
                    x_root, y_root);
    vc->s->last_x = x;
    vc->s->last_y = y;
}
#else
static void gd_mouse_set(DisplayChangeListener *dcl,