summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_private.h
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-07-28 16:48:38 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-07-28 16:48:38 -0500
commit33439865de327c5bac1c9a531070514e63fe3a04 (patch)
treeec870c0a41c709f722443dbc0869a51e1be66c11 /src/lib/elput/elput_private.h
parent2b16fc4278adfdf471c5ea488c08daeb96400a9a (diff)
downloadefl-33439865de327c5bac1c9a531070514e63fe3a04.tar.gz
elput: Fix synthetic relative motion events based on abs events
libinput won't actually give us this info, and logs an error instead. We can't synthesize based on pointer position due to pointer warping. So we must track abs reports and use previous abs reports to synthesize rel events.
Diffstat (limited to 'src/lib/elput/elput_private.h')
-rw-r--r--src/lib/elput/elput_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elput/elput_private.h b/src/lib/elput/elput_private.h
index 709871c368..f5bc425182 100644
--- a/src/lib/elput/elput_private.h
+++ b/src/lib/elput/elput_private.h
@@ -231,6 +231,8 @@ struct _Elput_Device
uint32_t ow, oh;
+ double absx, absy;
+
const char *path;
const char *output_name;
struct libinput_device *device;