From 010be3c6cffa85ac398135b156dc7c9e6b86ec96 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Sat, 23 Sep 2017 21:38:14 +0200 Subject: Quick fix. --- src/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input.c') diff --git a/src/input.c b/src/input.c index 96fc01d..8685127 100644 --- a/src/input.c +++ b/src/input.c @@ -154,7 +154,7 @@ int relabsd_input_read libevdev_next_event ( input->dev, - (LIBEVDEV_READ_FLAG_NORMAL /*| LIBEVDEV_READ_FLAG_BLOCKING*/), + (LIBEVDEV_READ_FLAG_NORMAL | LIBEVDEV_READ_FLAG_BLOCKING), &event ); @@ -224,7 +224,7 @@ int relabsd_input_wait_for_next_event &ready_to_read, (fd_set *) NULL, (fd_set *) NULL, - &(curr_timeout) + (input->timed_out) ? NULL : &(curr_timeout) ); if (errno != 0) -- cgit v1.2.3-70-g09d2