Remove irrelevant double tracking bug in error log (#53)
* Do not show double tracking * Do not show double tracking in debug and start
This commit is contained in:
parent
1c9b497b56
commit
b1f8a7cb0a
@ -86,7 +86,8 @@ namespace comfortable_swipe::gesture
|
|||||||
float scale = this->previous_gesture == swipe_gesture::FRESH
|
float scale = this->previous_gesture == swipe_gesture::FRESH
|
||||||
? 1.00f
|
? 1.00f
|
||||||
: 0.01f; // square root of 1/10
|
: 0.01f; // square root of 1/10
|
||||||
if (this->x * this->x + this->y * this->y > this->threshold_squared * scale)
|
static const float EPSILON = 1e-6f;
|
||||||
|
if (this->x * this->x + this->y * this->y > this->threshold_squared * scale - EPSILON)
|
||||||
{
|
{
|
||||||
int mask = 0;
|
int mask = 0;
|
||||||
if (this->fingers == 3) mask |= swipe_gesture::MSK_THREE_FINGERS;
|
if (this->fingers == 3) mask |= swipe_gesture::MSK_THREE_FINGERS;
|
||||||
|
|||||||
@ -28,7 +28,7 @@ namespace comfortable_swipe::service
|
|||||||
*/
|
*/
|
||||||
void debug()
|
void debug()
|
||||||
{
|
{
|
||||||
(void) std::system("stdbuf -oL -e0 libinput debug-events");
|
(void) std::system("bash -c \"stdbuf -oL -e0 libinput debug-events 2> >(grep -v 'double tracking')\"");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -31,7 +31,7 @@ namespace comfortable_swipe::service
|
|||||||
*/
|
*/
|
||||||
void start()
|
void start()
|
||||||
{
|
{
|
||||||
(void) std::system("stdbuf -oL -e0 libinput debug-events | " __COMFORTABLE_SWIPE__PROGRAM__ " buffer");
|
(void) std::system(__COMFORTABLE_SWIPE__PROGRAM__ " debug | " __COMFORTABLE_SWIPE__PROGRAM__ " buffer");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user