From c8edfb4f745ca5dd3b7274ca8865e16714035135 Mon Sep 17 00:00:00 2001 From: Rico Tiongson Date: Thu, 7 Feb 2019 18:45:53 +0800 Subject: [PATCH] Revert default threshold to 0.0 --- README.md | 2 +- src/defaults.conf | 4 ++-- src/lib/service/buffer.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 92024d5..d487f8c 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Comfortable swipe makes use of keyboard shortcuts for configurations. The config Property | Description | Default Value | Default Behavior --------- | ----------- | -------------- | ----- -threshold | mouse pixels to activate swipe; higher = less sensitive; floating-point (Note: Sky is the limit! Can be as large as 1000.0) | 20.0 +threshold | mouse pixels to activate swipe; higher = less sensitive; floating-point (Note: Sky is the limit! Can be as large as 1000.0) | 0.0 left3 | 3-finger swipe left | ctrl+shift+Right | switch to right workspace left4 | 4-finger swipe left | ctrl+alt+shift+Right | move window to right workspace right3 | 3-finger swipe right | ctrl+shift+Left | switch to left workspace diff --git a/src/defaults.conf b/src/defaults.conf index 9b92261..7d201e3 100644 --- a/src/defaults.conf +++ b/src/defaults.conf @@ -16,8 +16,8 @@ # # (Note: Sky is the limit! Can be as large as 1000.0) # -# Default: threshold = 20.0 -threshold = 20.0 +# Default: threshold = 0.0 +threshold = 0.0 ############################# # THREE / FOUR FINGER SWIPE # diff --git a/src/lib/service/buffer.cpp b/src/lib/service/buffer.cpp index d2b51e6..4d71f16 100644 --- a/src/lib/service/buffer.cpp +++ b/src/lib/service/buffer.cpp @@ -42,7 +42,7 @@ namespace comfortable_swipe::service // initialize swipe gesture handler comfortable_swipe::gesture::swipe_gesture swipe ( - config.count("threshold") ? std::atof(config["threshold"].data()) : 0.0, + config.count("threshold") ? std::stof(config["threshold"]) : 0.0, config["left3"].c_str(), config["left4"].c_str(), config["right3"].c_str(),