Merge branch 'master' into feature-python

This commit is contained in:
Rico Tiongson 2019-03-03 22:01:39 +08:00
commit 30e1850753

View File

@ -23,6 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "../util/_index.hpp" #include "../util/_index.hpp"
#include "../gesture/_index.hpp" #include "../gesture/_index.hpp"
#include <cstdio> // fgets_unlocked, stdin #include <cstdio> // fgets_unlocked, stdin
#include <iostream> // std::ios, std::cout, std::cin
/** /**
* Starts the comfortable-swipe service by buffering libinput debug-events. * Starts the comfortable-swipe service by buffering libinput debug-events.
@ -31,6 +32,11 @@ namespace comfortable_swipe::service
{ {
void buffer() void buffer()
{ {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
std::cout.tie(0);
std::cout.flush();
// read config file // read config file
auto config = comfortable_swipe::util::read_config_file(__COMFORTABLE_SWIPE__CONFIG__); auto config = comfortable_swipe::util::read_config_file(__COMFORTABLE_SWIPE__CONFIG__);