From c9f0f2b856bf8f4b464da7d0938300b11edc2a93 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Wed, 30 Mar 2011 17:25:20 +0200 Subject: Do not discard a started gesture Not all discarding code paths were taking the notion of a started gesture into account. Specifically, switching to a gesture of higher proiority would leave the old gesture without a finish. Fixed with this patch. Note that timeout implies not sent, so all discarding code paths are now covered. Signed-off-by: Henrik Rydberg --- src/grail-inserter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grail-inserter.c b/src/grail-inserter.c index 651d08d..f784848 100644 --- a/src/grail-inserter.c +++ b/src/grail-inserter.c @@ -151,7 +151,7 @@ void gin_frame_end(struct grail *ge, const struct utouch_frame *frame) grail_mask_foreach(i, gin->used, sizeof(gin->used)) { struct slot_state *s = &gin->state[i]; - if (!s->nclient || s->priority < discard[s->slice]) + if (!s->nclient || s->priority < discard[s->slice] && !s->sent) gin_gid_discard(ge, s->id); } -- cgit v1.2.3