From 1e07054fbeab6e90f104c279d3246097dd838a17 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sun, 2 Jan 2011 12:38:26 +0100 Subject: Prepare for queued event handling The current grail operates via callbacks. In order to make grail work as a pipe, where input and output can be controlled externally, add the missing event queue for gestures, and align the code to simplify a switch. Signed-off-by: Henrik Rydberg --- src/grail-event.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/grail-event.c') diff --git a/src/grail-event.c b/src/grail-event.c index 2cf8209..23fdbb3 100644 --- a/src/grail-event.c +++ b/src/grail-event.c @@ -97,6 +97,7 @@ void gin_send_event(struct grail *ge, struct slot_state *s, const struct gesture_event *ev, const struct touch_frame *frame) { + struct grail_impl *impl = ge->impl; const struct gesture_inserter *gin = ge->gin; struct grail_event gev; int i; @@ -113,7 +114,7 @@ void gin_send_event(struct grail *ge, struct slot_state *s, memcpy(gev.prop, ev->prop, ev->nprop * sizeof(grail_prop_t)); for (i = 0; i < s->nclient; i++) { gev.client_id = s->client_id[i]; - ge->gesture(ge, &gev); + grailbuf_put(&impl->gbuf, &gev); } } -- cgit v1.2.3