evdev: Convert wl_fixed_t to int before using internally

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
Jonas Ådahl 2012-05-09 08:46:44 +02:00 committed by Kristian Høgsberg
parent ff1c2d7914
commit c39aa5afca

View File

@ -300,8 +300,8 @@ evdev_flush_motion(struct evdev_input_device *device, uint32_t time)
if (device->type & EVDEV_RELATIVE_MOTION) { if (device->type & EVDEV_RELATIVE_MOTION) {
notify_motion(master, time, notify_motion(master, time,
master->x + device->rel.dx, wl_fixed_to_int(master->x) + device->rel.dx,
master->y + device->rel.dy); wl_fixed_to_int(master->y) + device->rel.dy);
device->type &= ~EVDEV_RELATIVE_MOTION; device->type &= ~EVDEV_RELATIVE_MOTION;
device->rel.dx = 0; device->rel.dx = 0;
device->rel.dy = 0; device->rel.dy = 0;