From ed9ebc423a84782ad045254be71127826f094499 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Tue, 19 May 2015 16:07:13 +0300 Subject: [PATCH] Behave more like xf86-input-mouse in mouse init --- kdrive/linux/mouse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kdrive/linux/mouse.c b/kdrive/linux/mouse.c index 459f668..18a8d9c 100644 --- a/kdrive/linux/mouse.c +++ b/kdrive/linux/mouse.c @@ -424,15 +424,15 @@ static const unsigned char intelli_init[] = { #define NINIT_INTELLI 3 -static int ps2SkipInit(KdMouseInfo * mi, int ninit, Bool ret_next) +static int ps2SkipInit(KdMouseInfo * const mi, int ninit, const Bool ret_next) { - Kmouse *km = mi->driver; + Kmouse * const km = mi->driver; int c = -1; Bool waiting; waiting = FALSE; while (ninit || ret_next) { - c = MouseReadByte(&km->iob, MOUSE_TIMEOUT); + c = MouseReadByte(&km->iob, 1); // Minimum timeout like in xf86-input-mouse if (c == -1) break; /* look for ACK */