Skip to content

Commit

Permalink
Patch missing GESTURE_SWIPE_BEGIN for Microsoft Surface Pro (#69)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Hikari9 authored May 2, 2019
1 parent dda91b7 commit 8f6e231
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.3
v1.0.4
3 changes: 2 additions & 1 deletion lib/gesture/swipe_gesture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8f6e231

Please sign in to comment.