diff options
Diffstat (limited to 'src/gestures-pinch.c')
| -rw-r--r-- | src/gestures-pinch.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gestures-pinch.c b/src/gestures-pinch.c index fa8a626..e022e8d 100644 --- a/src/gestures-pinch.c +++ b/src/gestures-pinch.c | |||
| @@ -62,6 +62,13 @@ int gru_pinch(struct grail *ge, | |||
| 62 | } | 62 | } |
| 63 | return 0; | 63 | return 0; |
| 64 | } | 64 | } |
| 65 | if ((move->timeout & fm_mask) == fm_mask) { | ||
| 66 | if (state->active) { | ||
| 67 | gin_gid_discard(ge, state->gid); | ||
| 68 | state->active = 0; | ||
| 69 | } | ||
| 70 | return 0; | ||
| 71 | } | ||
| 65 | if (!(move->tickle & mask)) | 72 | if (!(move->tickle & mask)) |
| 66 | return 0; | 73 | return 0; |
| 67 | if (!state->active) { | 74 | if (!state->active) { |
| @@ -93,6 +100,13 @@ int gru_winpinch(struct grail *ge, | |||
| 93 | } | 100 | } |
| 94 | return 0; | 101 | return 0; |
| 95 | } | 102 | } |
| 103 | if ((move->timeout & fm_mask) == fm_mask) { | ||
| 104 | if (state->active) { | ||
| 105 | gin_gid_discard(ge, state->gid); | ||
| 106 | state->active = 0; | ||
| 107 | } | ||
| 108 | return 0; | ||
| 109 | } | ||
| 96 | if (!(move->tickle & mask)) | 110 | if (!(move->tickle & mask)) |
| 97 | return 0; | 111 | return 0; |
| 98 | if (!state->active) { | 112 | if (!state->active) { |
