diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2011-03-25 19:10:19 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2011-03-28 22:02:11 +0200 |
| commit | 5d7ec311cdef842e60756d9189d09e3814e4ad1d (patch) | |
| tree | 75eb532a7fb1b23744e11ad3c44790d4bbddd434 /src/gestures-drag.c | |
| parent | a0a4c6c30704a792193ff49d7fcaab63dac8a07a (diff) | |
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>
Diffstat (limited to 'src/gestures-drag.c')
| -rw-r--r-- | src/gestures-drag.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gestures-drag.c b/src/gestures-drag.c index 9f2bcaf..962aa6d 100644 --- a/src/gestures-drag.c +++ b/src/gestures-drag.c | |||
| @@ -74,10 +74,8 @@ int gru_drag(struct grail *ge, | |||
| 74 | } | 74 | } |
| 75 | if ((move->timeout & fm_mask) == fm_mask) { | 75 | if ((move->timeout & fm_mask) == fm_mask) { |
| 76 | if (state->active) { | 76 | if (state->active) { |
| 77 | gin_gid_discard(ge, state->gid); | 77 | gin_gid_timeout(ge, state->gid); |
| 78 | state->active = 0; | ||
| 79 | } | 78 | } |
| 80 | return 0; | ||
| 81 | } | 79 | } |
| 82 | if (!state->active) { | 80 | if (!state->active) { |
| 83 | int type = getype[move->ntouch]; | 81 | int type = getype[move->ntouch]; |
| @@ -111,10 +109,8 @@ int gru_windrag(struct grail *ge, | |||
| 111 | } | 109 | } |
| 112 | if ((move->timeout & fm_mask) == fm_mask) { | 110 | if ((move->timeout & fm_mask) == fm_mask) { |
| 113 | if (state->active) { | 111 | if (state->active) { |
| 114 | gin_gid_discard(ge, state->gid); | 112 | gin_gid_timeout(ge, state->gid); |
| 115 | state->active = 0; | ||
| 116 | } | 113 | } |
| 117 | return 0; | ||
| 118 | } | 114 | } |
| 119 | if (!state->active) { | 115 | if (!state->active) { |
| 120 | if (move->ntouch == 4) { | 116 | if (move->ntouch == 4) { |
