spice: input: Fix absolute mouse y coordinates
authorCole Robinson <crobinso@redhat.com>
Fri, 21 Mar 2014 18:28:49 +0000 (14:28 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 24 Mar 2014 07:41:21 +0000 (08:41 +0100)
Current tablet + spice is unusable. Regressed with the UI input rework.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/spice-input.c

index 6dab23b..c342e0d 100644 (file)
@@ -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();
 }