From 43fe2bb9b3f172b685f9cf2cce59777b45ab4b48 Mon Sep 17 00:00:00 2001 From: Rico Tiongson Date: Wed, 1 May 2019 18:59:07 +0800 Subject: [PATCH] Patch missing GESTURE_SWIPE_BEGIN for Microsoft Surface Pro Touchpad for Microsoft Surface Pro doesn't show GESTURE_SWIPE_BEGIN in comfortable-swipe debug due to unresolved bug from libinput. This fix temporarily patches that issue by adding UPDATE pattern to the gesture begin regex. --- VERSION | 2 +- lib/gesture/swipe_gesture.regex.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 79ff5a5..f13f1bb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v1.0.3 +v1.0.4 diff --git a/lib/gesture/swipe_gesture.regex.cpp b/lib/gesture/swipe_gesture.regex.cpp index 7dd1d04..08a8c96 100644 --- a/lib/gesture/swipe_gesture.regex.cpp +++ b/lib/gesture/swipe_gesture.regex.cpp @@ -34,7 +34,7 @@ namespace comfortable_swipe::gesture const char* swipe_gesture::GESTURE_BEGIN_REGEX_PATTERN = "^" // start of string "[ -]event\\d+" // event - "\\s+GESTURE_SWIPE_BEGIN" // gesture + "\\s+GESTURE_SWIPE_(?:BEGIN|UPDATE)" // gesture, (UPDATE: patch for Microsoft Surface Pro Touchpad) "\\s+\\S+" // timestamp "\\s+(\\d+)" // fingers "\\s*$" // end of string