pkgsrc/x11/modular-xorg-server/patches/patch-ad
drochner 7caa76450d -don't use the Xrandr version from randrproto for RRQueryVersion but
hardwire it to 1.1, otherwise we announce more than we can support
-add a "glx" option to build the "glx" extension -- this is work in
 progress (might need sone CFLAGS, see pkgsrc-wip)
-bump PKGREVISION
2007-02-26 17:51:16 +00:00

26 lines
1.2 KiB
Text

$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) {