$NetBSD: patch-ad,v 1.2 2007/02/26 17:51:16 drochner Exp $ So mouse pointer does not get stuck on left side of screen. --- hw/xfree86/common/xf86Xinput.c.orig 2006-07-05 18:31:40.000000000 +0000 +++ hw/xfree86/common/xf86Xinput.c @@ -940,15 +940,10 @@ xf86PostMotionEvent(DeviceIntPtr device, /* modeled from xf86Events.c */ if (device->ptrfeed->ctrl.threshold) { if ((abs(dx) + abs(dy)) >= device->ptrfeed->ctrl.threshold) { - local->dxremaind = ((float)dx * (float)(device->ptrfeed->ctrl.num)) / - (float)(device->ptrfeed->ctrl.den) + local->dxremaind; - valuator[0] = (int)local->dxremaind; - local->dxremaind = local->dxremaind - (float)valuator[0]; - - local->dyremaind = ((float)dy * (float)(device->ptrfeed->ctrl.num)) / - (float)(device->ptrfeed->ctrl.den) + local->dyremaind; - valuator[1] = (int)local->dyremaind; - local->dyremaind = local->dyremaind - (float)valuator[1]; + valuator[0] = (dx * device->ptrfeed->ctrl.num) / + device->ptrfeed->ctrl.den; + valuator[1] = (dy * device->ptrfeed->ctrl.num) / + device->ptrfeed->ctrl.den; } } else if (dx || dy) {