Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jul 2002 10:17:53 +0200 (CEST)
From:      Ted Lindgreen <ted@sanne.nlnetlabs.nl>
To:        freebsd-current@FreeBSD.org
Subject:   Mousewheel problem after compiling X on CURRENT
Message-ID:  <200207080817.g688Hr7v046987@sanne.nlnetlabs.nl>

next in thread | raw e-mail | index | archive | help

After re-compiling XFree86-Server-4.2.0_3 on current, my mousewheel
(Logitech usb wheel mouse, connected via sysmouse) produces only
downward, or button-5, events on scrolling either up or down.

The problem appears to be the compilation of line 1508 in
/usr/ports/x11-servers/XFree86-4-Server/work/xc/programs/Xserver/hw/xfree86/input/mouse/mouse.c

Changing this line:

 dz = ((char)(pBuf[5] << 1) + (char)(pBuf[6] << 1)) / 2;
into
 dz = ((signed char)(pBuf[5] << 1) + (signed char)(pBuf[6] << 1)) >> 1;

works around the problem.

I copied this change from an earlier change to moused.c in
revision 1.56 to work around the same problem there.

-- ted



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207080817.g688Hr7v046987>