diff --git a/lib/gesture/swipe_gesture.cpp b/lib/gesture/swipe_gesture.cpp index 137d02a..7dcea37 100644 --- a/lib/gesture/swipe_gesture.cpp +++ b/lib/gesture/swipe_gesture.cpp @@ -87,7 +87,8 @@ namespace comfortable_swipe::gesture ? 1.00f : 0.01f; // square root of 1/10 static const float EPSILON = 1e-6f; - if (this->x * this->x + this->y * this->y > this->threshold_squared * scale - EPSILON) + if (this->x * this->x + this->y * this->y + > this->threshold_squared * scale + EPSILON) { int mask = 0; if (this->fingers == 3) mask |= swipe_gesture::MSK_THREE_FINGERS; diff --git a/lib/gesture/xdo_gesture.cpp b/lib/gesture/xdo_gesture.cpp index 4517ccc..3afda7d 100644 --- a/lib/gesture/xdo_gesture.cpp +++ b/lib/gesture/xdo_gesture.cpp @@ -24,6 +24,8 @@ extern "C" #include // xdo, xdo_new } +#include "xdo_gesture.h" + namespace comfortable_swipe::gesture { /**