User: Password:
Subscribe / Log in / New account

Multi-touch support landing in X

Multi-touch support landing in X

Posted Jan 19, 2012 9:37 UTC (Thu) by dgm (subscriber, #49227)
Parent article: Multi-touch support landing in X

I have long been interested in how the X11 developers were going to solve this (quite difficult) problem. I have to say that I'm impressed, the TouchOwnership solution is brilliant! Good job.

(Log in to post comments)

Multi-touch support landing in X

Posted Jan 21, 2012 5:51 UTC (Sat) by cnd (guest, #50542) [Link]

We (the uTouch team) were wanting a solution for low latency through XInput, but we couldn't think of a good way to do it if we had these accept/reject round trips to the server. IIRC, at the X Developer's Conference in 2010 I was giving a talk on how we hoped to architect our gesture stack. I think I mentioned this issue, and Keith Packard mentioned on IRC that maybe we could send events to potential clients before they became the "owners" of a touch sequence.

After many discussions over beers, I went back home and drafted up the touch ownership concept. It has been in Ubuntu's prototype implementation since it debuted in Ubuntu 11.04, and we were able to demonstrate its usage. This gave us all a good feeling that it was the right approach.

Now, we're almost done with our rearchitecture of the uTouch gesture stack, built on top of XInput multitouch. This functionality allows us to have a single process dedicated to gesture recognition, which then dispatches gesture events to clients who want them. The clients can then take them as they are, or analyze them further to see if they match their own filters for gestures. None of that would be possible without huge latencies if we hadn't added touch ownership support :).

-- Chase

Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds