summaryrefslogtreecommitdiff
path: root/Xi/extinit.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-12-14 12:45:28 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-12-16 11:18:47 +1000
commit84db813b9db34975b5fe288a8a551bb98f0cc1c1 (patch)
tree0bd1479ef867b1e4c06e09150af257fcec74cf5e /Xi/extinit.c
parent92a5862d0c120b009a688237ec7142b7c21ae272 (diff)
Hook up TouchBegin/Update/End events
The are the same as device events internally but require the touch ID separately from the detail.button field (the protocol uses the detail field for the touch id). For simpler integration of pointer emulation we need to set the detail.button field while keeping the touchid around. Add the three new touch event types to the various places in the server where they need to be handled. The actual handling of the events is somewhat more complicated in most places. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'Xi/extinit.c')
-rw-r--r--Xi/extinit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Xi/extinit.c b/Xi/extinit.c
index b43f9bbc0..87f793321 100644
--- a/Xi/extinit.c
+++ b/Xi/extinit.c
@@ -858,6 +858,9 @@ XI2EventSwap(xGenericEvent *from, xGenericEvent *to)
case XI_KeyRelease:
case XI_ButtonPress:
case XI_ButtonRelease:
+ case XI_TouchBegin:
+ case XI_TouchUpdate:
+ case XI_TouchEnd:
SDeviceEvent((xXIDeviceEvent*)from, (xXIDeviceEvent*)to);
break;
case XI_RawMotion: