summaryrefslogtreecommitdiff
path: root/src/gestures-pinch.c
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2011-03-25 19:10:19 +0100
committerHenrik Rydberg <rydberg@euromail.se>2011-03-28 22:02:11 +0200
commit5d7ec311cdef842e60756d9189d09e3814e4ad1d (patch)
tree75eb532a7fb1b23744e11ad3c44790d4bbddd434 /src/gestures-pinch.c
parenta0a4c6c30704a792193ff49d7fcaab63dac8a07a (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-pinch.c')
-rw-r--r--src/gestures-pinch.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gestures-pinch.c b/src/gestures-pinch.c
index 18772a0..bc5db1f 100644
--- a/src/gestures-pinch.c
+++ b/src/gestures-pinch.c
@@ -64,10 +64,8 @@ int gru_pinch(struct grail *ge,
64 } 64 }
65 if ((move->timeout & fm_mask) == fm_mask) { 65 if ((move->timeout & fm_mask) == fm_mask) {
66 if (state->active) { 66 if (state->active) {
67 gin_gid_discard(ge, state->gid); 67 gin_gid_timeout(ge, state->gid);
68 state->active = 0;
69 } 68 }
70 return 0;
71 } 69 }
72 if (!(move->tickle & mask)) 70 if (!(move->tickle & mask))
73 return 0; 71 return 0;
@@ -102,10 +100,8 @@ int gru_winpinch(struct grail *ge,
102 } 100 }
103 if ((move->timeout & fm_mask) == fm_mask) { 101 if ((move->timeout & fm_mask) == fm_mask) {
104 if (state->active) { 102 if (state->active) {
105 gin_gid_discard(ge, state->gid); 103 gin_gid_timeout(ge, state->gid);
106 state->active = 0;
107 } 104 }
108 return 0;
109 } 105 }
110 if (!(move->tickle & mask)) 106 if (!(move->tickle & mask))
111 return 0; 107 return 0;