aboutsummaryrefslogtreecommitdiff
path: root/ui/spice-input.c
diff options
context:
space:
mode:
authorPhilippe Voinov <philippevoinov@gmail.com>2017-05-05 15:39:52 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-05-11 09:42:16 +0200
commit9cfa7ab939f27ffca845ffb9a28c3fa1856c92e7 (patch)
treeca01d59a8b973d15eccc8521cd480dd98497f680 /ui/spice-input.c
parent76d20ea0f1b26ebd5da2f5fb2fdf3250cde887bb (diff)
downloadqemu-9cfa7ab939f27ffca845ffb9a28c3fa1856c92e7.zip
qemu-9cfa7ab939f27ffca845ffb9a28c3fa1856c92e7.tar.gz
qemu-9cfa7ab939f27ffca845ffb9a28c3fa1856c92e7.tar.bz2
ui: Support non-zero minimum values for absolute input axes
This patch refactors ui/input.c to support absolute axis minimum values other than 0. All dependent calls to qemu_input_queue_abs have been updated to explicitly supply 0 as the axis minimum value. Signed-off-by: Philippe Voinov <philippevoinov@gmail.com> Message-id: 20170505133952.29885-1-philippevoinov@gmail.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/spice-input.c')
-rw-r--r--ui/spice-input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/spice-input.c b/ui/spice-input.c
index 8eeebdb..86293dd 100644
--- a/ui/spice-input.c
+++ b/ui/spice-input.c
@@ -172,8 +172,8 @@ static void tablet_position(SpiceTabletInstance* sin, int x, int y,
QemuSpicePointer *pointer = container_of(sin, QemuSpicePointer, tablet);
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->height);
+ qemu_input_queue_abs(NULL, INPUT_AXIS_X, x, 0, pointer->width);
+ qemu_input_queue_abs(NULL, INPUT_AXIS_Y, y, 0, pointer->height);
qemu_input_event_sync();
}