summaryrefslogtreecommitdiff
path: root/src/gestures-rotate.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-rotate.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-rotate.c')
-rw-r--r--src/gestures-rotate.c8
1 files changed, 2 insertions, 6 deletions
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,
63 } 63 }
64 if ((move->timeout & fm_mask) == fm_mask) { 64 if ((move->timeout & fm_mask) == fm_mask) {
65 if (state->active) { 65 if (state->active) {
66 gin_gid_discard(ge, state->gid); 66 gin_gid_timeout(ge, state->gid);
67 state->active = 0;
68 } 67 }
69 return 0;
70 } 68 }
71 if (!(move->tickle & mask)) 69 if (!(move->tickle & mask))
72 return 0; 70 return 0;
@@ -101,10 +99,8 @@ int gru_winrotate(struct grail *ge,
101 } 99 }
102 if ((move->timeout & fm_mask) == fm_mask) { 100 if ((move->timeout & fm_mask) == fm_mask) {
103 if (state->active) { 101 if (state->active) {
104 gin_gid_discard(ge, state->gid); 102 gin_gid_timeout(ge, state->gid);
105 state->active = 0;
106 } 103 }
107 return 0;
108 } 104 }
109 if (!(move->tickle & mask)) 105 if (!(move->tickle & mask))
110 return 0; 106 return 0;