Allow grabbing clients to accept or reject touches any time
authorChase Douglas <chase.douglas@canonical.com>
Wed, 14 Sep 2011 15:10:14 +0000 (10:10 -0500)
committerChase Douglas <chase.douglas@canonical.com>
Wed, 14 Sep 2011 20:21:43 +0000 (15:21 -0500)
commitfa16231f0e5244cdcf77e262647525716f507bdd
tree7c27781549b73751bf1daca1ca10daca0f2c797a
parent2ea2f99f4fe1dcd3b8e539ca41c482fc40a0533d
Allow grabbing clients to accept or reject touches any time

This is potentially both a performance and client complexity
improvement. An example is a gesture recognizer using touch grabs on
each window with a subscription. If events on a child window are known
to not match any subscription on the child window, then the client
should be able to reject the touch grab even if the parent window hasn't
accepted any of the touches, perhaps because the parent window
gesture hasn't timed out or crossed other thresholds yet.

As an inverse example, the events may match a child window subscription
before the root window has rejected ownership. The child window should
be able to accept the touch proactively. This allows for further clients
to receive a TouchEnd event earlier, and means the client may be able to
reduce state being tracked. If this were not allowed, the client would
need to wait until it received ownership before accepting the sequence.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
XI2proto.h
specs/XI2proto.txt