summaryrefslogtreecommitdiff
path: root/XI2proto.h
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@canonical.com>2011-09-14 10:10:14 -0500
committerChase Douglas <chase.douglas@canonical.com>2011-09-14 15:21:43 -0500
commitfa16231f0e5244cdcf77e262647525716f507bdd (patch)
tree7c27781549b73751bf1daca1ca10daca0f2c797a /XI2proto.h
parent2ea2f99f4fe1dcd3b8e539ca41c482fc40a0533d (diff)
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>
Diffstat (limited to 'XI2proto.h')
-rw-r--r--XI2proto.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/XI2proto.h b/XI2proto.h
index 3315f1e..9e2c63c 100644
--- a/XI2proto.h
+++ b/XI2proto.h
@@ -648,8 +648,9 @@ typedef struct {
uint8_t mode;
uint8_t pad;
uint32_t touch_id; /**< Since XI 2.2 */
+ Window grab_window; /**< Since XI 2.2 */
} xXIAllowEventsReq;
-#define sz_xXIAllowEventsReq 16 /**< Was 12 before XI 2.2 */
+#define sz_xXIAllowEventsReq 20 /**< Was 12 before XI 2.2 */
/**