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
This commit is contained in:
Rico Tiongson 2019-05-02 15:53:33 +08:00 committed by GitHub
parent dda91b7178
commit 8f6e231a5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -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;