projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff1c2d7
)
evdev: Convert wl_fixed_t to int before using internally
author
Jonas Ådahl
<jadahl@gmail.com>
Wed, 9 May 2012 06:46:44 +0000
(08:46 +0200)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 9 May 2012 15:30:49 +0000
(11:30 -0400)
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
src/evdev.c
patch
|
blob
|
history
diff --git
a/src/evdev.c
b/src/evdev.c
index
c65b82f
..
5fa7ae6
100644
(file)
--- 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;