From 8f6e231a5e9f62358fa1ca6a010c842a15474d74 Mon Sep 17 00:00:00 2001 From: Rico Tiongson Date: Thu, 2 May 2019 15:53:33 +0800 Subject: [PATCH] Patch missing GESTURE_SWIPE_BEGIN for Microsoft Surface Pro (#69) * 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. * Defer patch to GESTURE_SWIPE_UPDATE regex pattern instead of modifying GESTURE_SWIPE_BEGIN --- VERSION | 2 +- lib/gesture/swipe_gesture.cpp | 3 ++- 2 files changed, 3 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.cpp b/lib/gesture/swipe_gesture.cpp index a8ba7c9..973df0f 100644 --- a/lib/gesture/swipe_gesture.cpp +++ b/lib/gesture/swipe_gesture.cpp @@ -177,7 +177,8 @@ namespace comfortable_swipe::gesture else { // not swiping, check if swipe will begin - if (std::regex_match(line, matches, gesture_swipe_begin) != 0) + if (std::regex_match(line, matches, gesture_swipe_begin) != 0 + || std::regex_match(line, matches, gesture_swipe_update) != 0) { // assign necessary variables for swipe begin this->flag_swiping = true;