projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3e195b
)
compositor: Change notify_motion to take relative motion events
author
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 25 Feb 2013 22:04:47 +0000
(17:04 -0500)
committer
Jonas Ådahl
<jadahl@gmail.com>
Sun, 10 Nov 2013 16:51:31 +0000
(17:51 +0100)
src/evdev.c
patch
|
blob
|
history
diff --git
a/src/evdev.c
b/src/evdev.c
index
a1fa01f
..
d2954b5
100644
(file)
--- a/
src/evdev.c
+++ b/
src/evdev.c
@@
-254,9
+254,7
@@
evdev_flush_motion(struct evdev_device *device, uint32_t time)
device->pending_events &= ~EVDEV_SYN;
if (device->pending_events & EVDEV_RELATIVE_MOTION) {
- notify_motion(master, time,
- master->seat.pointer->x + device->rel.dx,
- master->seat.pointer->y + device->rel.dy);
+ notify_motion(master, time, device->rel.dx, device->rel.dy);
device->pending_events &= ~EVDEV_RELATIVE_MOTION;
device->rel.dx = 0;
device->rel.dy = 0;