From 5d7ec311cdef842e60756d9189d09e3814e4ad1d Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Fri, 25 Mar 2011 19:10:19 +0100 Subject: Decouple timeout from discard Move the actual gesture discard from the recognition phase to the instantiation phase. Signed-off-by: Henrik Rydberg --- src/gestures-rotate.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/gestures-rotate.c') diff --git a/src/gestures-rotate.c b/src/gestures-rotate.c index 03e8f3c..0fff8a4 100644 --- a/src/gestures-rotate.c +++ b/src/gestures-rotate.c @@ -63,10 +63,8 @@ int gru_rotate(struct grail *ge, } if ((move->timeout & fm_mask) == fm_mask) { if (state->active) { - gin_gid_discard(ge, state->gid); - state->active = 0; + gin_gid_timeout(ge, state->gid); } - return 0; } if (!(move->tickle & mask)) return 0; @@ -101,10 +99,8 @@ int gru_winrotate(struct grail *ge, } if ((move->timeout & fm_mask) == fm_mask) { if (state->active) { - gin_gid_discard(ge, state->gid); - state->active = 0; + gin_gid_timeout(ge, state->gid); } - return 0; } if (!(move->tickle & mask)) return 0; -- cgit v1.2.3