~chasedouglas/grail/comparison.pivot

« back to all changes in this revision

Viewing changes to src/gestures-rotate.c

  • Committer: Henrik Rydberg
  • Date: 2011-03-28 20:04:11 UTC
  • Revision ID: rydberg@bitmath.org-20110328200411-put78j9zec1outka
Decouple timeout from discard

Move the actual gesture discard from the recognition phase
to the instantiation phase.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        }
64
64
        if ((move->timeout & fm_mask) == fm_mask) {
65
65
                if (state->active) {
66
 
                        gin_gid_discard(ge, state->gid);
67
 
                        state->active = 0;
 
66
                        gin_gid_timeout(ge, state->gid);
68
67
                }
69
 
                return 0;
70
68
        }
71
69
        if (!(move->tickle & mask))
72
70
                return 0;
101
99
        }
102
100
        if ((move->timeout & fm_mask) == fm_mask) {
103
101
                if (state->active) {
104
 
                        gin_gid_discard(ge, state->gid);
105
 
                        state->active = 0;
 
102
                        gin_gid_timeout(ge, state->gid);
106
103
                }
107
 
                return 0;
108
104
        }
109
105
        if (!(move->tickle & mask))
110
106
                return 0;