summaryrefslogtreecommitdiff
path: root/src/grail-inserter.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-09-21 09:49:26 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-09-21 12:56:17 +0200
commitd0f7b524153d1b54128b049841f880ee78c2c529 (patch)
treed6a1fa1f3254f183c77b7222b17c4ac60df658f2 /src/grail-inserter.h
parent0e1bf39bd34062f07358dc605c0f03fa5df08356 (diff)
Simplify book-keeping of active gestures
The current frame computation returns the event types to filter, which is less useful than knowing what gesture types are active in the frame. Add the active gesture types to the frame struct and simplify usage. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/grail-inserter.h')
-rw-r--r--src/grail-inserter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/grail-inserter.h b/src/grail-inserter.h
index c5a865a..9baecb7 100644
--- a/src/grail-inserter.h
+++ b/src/grail-inserter.h
@@ -48,6 +48,7 @@ struct slot_state {
48 48
49struct gesture_inserter { 49struct gesture_inserter {
50 struct slot_state state[DIM_INSTANCE]; 50 struct slot_state state[DIM_INSTANCE];
51 grail_mask_t types[DIM_GRAIL_TYPE_BYTES];
51 grail_mask_t unused[DIM_INSTANCE_BYTES]; 52 grail_mask_t unused[DIM_INSTANCE_BYTES];
52 grail_mask_t fresh[DIM_INSTANCE_BYTES]; 53 grail_mask_t fresh[DIM_INSTANCE_BYTES];
53 grail_mask_t used[DIM_INSTANCE_BYTES]; 54 grail_mask_t used[DIM_INSTANCE_BYTES];
@@ -83,8 +84,7 @@ int gin_init(struct grail *ge);
83void gin_destroy(struct grail *ge); 84void gin_destroy(struct grail *ge);
84 85
85void gin_frame_begin(struct grail *ge, const struct touch_frame *frame); 86void gin_frame_begin(struct grail *ge, const struct touch_frame *frame);
86void gin_frame_end(struct grail *ge, grail_mask_t *filtered, int max_filtered, 87void gin_frame_end(struct grail *ge, const struct touch_frame *frame);
87 const struct touch_frame *frame);
88 88
89int gin_gid_begin_select(struct grail *ge, int type, int priority, 89int gin_gid_begin_select(struct grail *ge, int type, int priority,
90 const grail_mask_t *span, int nspan); 90 const grail_mask_t *span, int nspan);