blob: b54be2011233859a92e0293fd5338b9151dcb5a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
From 07847ab985708e6b280607036d886af312dcc397 Mon Sep 17 00:00:00 2001
From: abc def <24701-abcdef@users.noreply.gitlab.freedesktop.org>
Date: Mon, 7 Feb 2022 16:19:01 +0100
Subject: [PATCH 6/7] Cancel hold gestures instead of finishing them
It was requested that we should be consistent here with what happens when swipe gestures interrupt hold gestures.
---
src/evdev-mt-touchpad-tfd.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/evdev-mt-touchpad-tfd.c b/src/evdev-mt-touchpad-tfd.c
index d9a27c8a..33fb4a06 100644
--- a/src/evdev-mt-touchpad-tfd.c
+++ b/src/evdev-mt-touchpad-tfd.c
@@ -331,12 +331,12 @@ tp_tfd_interrupt_gestures(struct tp_dispatch *tp, struct tp_touch *t, uint64_t t
case GESTURE_STATE_NONE:
case GESTURE_STATE_POINTER_MOTION:
break; /* should be harmless enough? */
- case GESTURE_STATE_HOLD:
- case GESTURE_STATE_HOLD_AND_MOTION:
- /* starting a drag should finish a hold gesture -- not
- cancel it (if there's any difference?) */
- tp_gesture_stop(tp, time);
- break;
+ // case GESTURE_STATE_HOLD:
+ // case GESTURE_STATE_HOLD_AND_MOTION:
+ // /* starting a drag should finish a hold gesture -- not
+ // cancel it (if there's any difference?) */
+ // tp_gesture_stop(tp, time);
+ // break;
default:
tp_gesture_cancel(tp, time);
break;
--
2.47.1
|