summaryrefslogtreecommitdiff
path: root/src/evdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/evdev.c')
-rw-r--r--src/evdev.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 0a5ec91..a9c132c 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -168,12 +168,14 @@ evdev_process_relative(struct evdev_input_device *device,
case REL_WHEEL:
notify_axis(&device->master->base.seat,
time,
- WL_POINTER_AXIS_VERTICAL_SCROLL, e->value);
+ WL_POINTER_AXIS_VERTICAL_SCROLL,
+ wl_fixed_from_int(e->value));
break;
case REL_HWHEEL:
notify_axis(&device->master->base.seat,
time,
- WL_POINTER_AXIS_HORIZONTAL_SCROLL, e->value);
+ WL_POINTER_AXIS_HORIZONTAL_SCROLL,
+ wl_fixed_from_int(e->value));
break;
}
}