[PATCH libevdev 1/3] Actually make the min queue size a minimum

Peter Hutterer peter.hutterer at who-t.net
Mon Apr 7 17:23:16 PDT 2014


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 libevdev/libevdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libevdev/libevdev.c b/libevdev/libevdev.c
index 96bd41b..34413b2 100644
--- a/libevdev/libevdev.c
+++ b/libevdev/libevdev.c
@@ -93,7 +93,7 @@ init_event_queue(struct libevdev *dev)
 		nevents += num_mt_axes * (nslots - 1);
 	}
 
-	return queue_alloc(dev, min(MIN_QUEUE_SIZE, nevents * 2));
+	return queue_alloc(dev, max(MIN_QUEUE_SIZE, nevents * 2));
 }
 
 static void
-- 
1.9.0



More information about the Input-tools mailing list