[PATCH inputproto multitouch 10/13] Touch grabs must be sync only

Chase Douglas chase.douglas at canonical.com
Tue Aug 23 17:52:05 PDT 2011


On Wed, Aug 24, 2011 at 10:47:04AM +1000, Peter Hutterer wrote:
> On Tue, Aug 23, 2011 at 05:37:39PM -0700, Chase Douglas wrote:
> > On Wed, Aug 24, 2011 at 09:07:20AM +1000, Peter Hutterer wrote:
> > > The ownership passing is quite similar to sync grabs, so require touch grabs
> > > to always be sync.
> > 
> > I see two sides of this:
> > 
> > Touch grabs are like pointer sync grabs because the owning client can keep other
> > clients from receiving ownership or cleaning up state if it doesn't
> > accept/reject.
> > 
> > Touch grabs are like pointer async grabs because the client doesn't have to ask
> > for each event individually. Events are asynchronously streamed to the client.
> > 
> > Although it's not technically necessary, for protocol saneness it might make
> > sense to add a third grab mode like "GrabModeOwner".
> 
> how's the receival of ownership events decided then? still with the event
> mask? should we have two modes? GrabModeTouch, GrabModeTouchOwner?

Ownership events are still recevied via the event mask. What is the difference
between GrabModeTouch and GrabModeTouchOwner in your mind?

-- Chase


More information about the xorg-devel mailing list