Skip to content

Commit 8f6e231

Browse files
authored
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
1 parent dda91b7 commit 8f6e231

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.0.3
1+
v1.0.4

lib/gesture/swipe_gesture.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ namespace comfortable_swipe::gesture
177177
else
178178
{
179179
// not swiping, check if swipe will begin
180-
if (std::regex_match(line, matches, gesture_swipe_begin) != 0)
180+
if (std::regex_match(line, matches, gesture_swipe_begin) != 0
181+
|| std::regex_match(line, matches, gesture_swipe_update) != 0)
181182
{
182183
// assign necessary variables for swipe begin
183184
this->flag_swiping = true;

0 commit comments

Comments
 (0)