tp_end_touch(tp, t, time);
}
+static void
+tp_stop_actions(struct tp_dispatch *tp, uint64_t time)
+{
+ tp_edge_scroll_stop_events(tp, time);
+ tp_gesture_cancel(tp, time);
+ tp_tap_suspend(tp, time);
+}
+
struct normalized_coords
tp_get_delta(struct tp_touch *t)
{
return;
if (!tp->palm.trackpoint_active) {
- tp_edge_scroll_stop_events(tp, time);
- tp_gesture_cancel(tp, time);
- tp_tap_suspend(tp, time);
+ tp_stop_actions(tp, time);
tp->palm.trackpoint_active = true;
}
ARRAY_LENGTH(tp->dwt.mod_mask)))
return;
- tp_edge_scroll_stop_events(tp, time);
- tp_gesture_cancel(tp, time);
- tp_tap_suspend(tp, time);
+ tp_stop_actions(tp, time);
tp->dwt.keyboard_active = true;
timeout = DEFAULT_KEYBOARD_ACTIVITY_TIMEOUT_1;
} else {