From c39aa5afcacaf17297b5a168a179c7399521c7a4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonas=20=C3=85dahl?= Date: Wed, 9 May 2012 08:46:44 +0200 Subject: [PATCH] evdev: Convert wl_fixed_t to int before using internally MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonas Ådahl --- src/evdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index c65b82f..5fa7ae6 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -300,8 +300,8 @@ evdev_flush_motion(struct evdev_input_device *device, uint32_t time) if (device->type & EVDEV_RELATIVE_MOTION) { notify_motion(master, time, - master->x + device->rel.dx, - master->y + device->rel.dy); + wl_fixed_to_int(master->x) + device->rel.dx, + wl_fixed_to_int(master->y) + device->rel.dy); device->type &= ~EVDEV_RELATIVE_MOTION; device->rel.dx = 0; device->rel.dy = 0; -- 2.7.4