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 2019-05-01 18:59:07 +08:00
parent dda91b7178
commit 43fe2bb9b3
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
v1.0.3
v1.0.4

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