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.
This commit is contained in:
Rico Tiongson committed 2019-05-01 19:01:23 +08:00
1 parent dda91b7178
commit 43fe2bb9b3
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1 +1 @@
v1.0.3
v1.0.4
+1 -1
View File
@@ -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