From 07b17059f1bb98a29afa2033b4f74ce83acb5f5e Mon Sep 17 00:00:00 2001 From: grant2258 Date: Tue, 11 Dec 2018 23:24:21 +0000 Subject: [PATCH] fix udev mouse --- input/drivers/udev_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/drivers/udev_input.c b/input/drivers/udev_input.c index 2c63754ec6..8066eaab50 100644 --- a/input/drivers/udev_input.c +++ b/input/drivers/udev_input.c @@ -523,7 +523,7 @@ static bool udev_input_add_device(udev_input_t *udev, device->mouse.y_max = absinfo.maximum; } /* UDEV_INPUT_MOUSE may report in absolute coords too */ - else if (type == UDEV_INPUT_MOUSE && ioctl(fd, EVIOCGABS(ABS_X), &absinfo) >= 0) + else if (type == UDEV_INPUT_MOUSE && ioctl(fd, EVIOCGABS(ABS_X), &absinfo) > 0) { if (absinfo.minimum >= absinfo.maximum) goto error;