From: Cole Robinson Date: Fri, 21 Mar 2014 18:28:49 +0000 (-0400) Subject: spice: input: Fix absolute mouse y coordinates X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b2c494c3a473adf654144c845e04bebffb05dee0;p=people%2Fliuw%2Flibxenctrl-split%2Fqemu-xen.git spice: input: Fix absolute mouse y coordinates Current tablet + spice is unusable. Regressed with the UI input rework. Signed-off-by: Cole Robinson Signed-off-by: Gerd Hoffmann --- diff --git a/ui/spice-input.c b/ui/spice-input.c index 6dab23b75..c342e0dcf 100644 --- a/ui/spice-input.c +++ b/ui/spice-input.c @@ -176,7 +176,7 @@ static void tablet_position(SpiceTabletInstance* sin, int x, int y, spice_update_buttons(pointer, 0, buttons_state); qemu_input_queue_abs(NULL, INPUT_AXIS_X, x, pointer->width); - qemu_input_queue_abs(NULL, INPUT_AXIS_Y, y, pointer->width); + qemu_input_queue_abs(NULL, INPUT_AXIS_Y, y, pointer->height); qemu_input_event_sync(); }