FreeBSD Bugzilla – Attachment 25274 Details for
Bug 43232
X doesn't receive button #7 from moused's /dev/sysmouse
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
xmousediff
xmousediff (text/x-patch), 1.12 KB, created by
Eric Anholt
on 2003-01-10 03:41:01 UTC
(
hide
)
Description:
xmousediff
Filename:
MIME Type:
Creator:
Eric Anholt
Created:
2003-01-10 03:41:01 UTC
Size:
1.12 KB
patch
obsolete
>Index: files/patch-mouse.c >=================================================================== >RCS file: /home/ncvs/ports/x11/XFree86-4-libraries/files/patch-mouse.c,v >retrieving revision 1.1 >diff -u -u -r1.1 patch-mouse.c >--- files/patch-mouse.c 5 Aug 2002 07:33:22 -0000 1.1 >+++ files/patch-mouse.c 9 Jan 2003 22:48:30 -0000 >@@ -1,11 +1,13 @@ >---- programs/Xserver/hw/xfree86/input/mouse/mouse.c.orig Wed Dec 19 08:05:22 2001 >-+++ programs/Xserver/hw/xfree86/input/mouse/mouse.c Fri Aug 2 15:35:01 2002 >-@@ -1505,7 +1505,7 @@ >+--- programs/Xserver/hw/xfree86/input/mouse/mouse.c.orig Wed Dec 19 16:05:22 2001 >++++ programs/Xserver/hw/xfree86/input/mouse/mouse.c Thu Jan 9 22:48:18 2003 >+@@ -1505,8 +1505,8 @@ > dy = - ((char)(pBuf[2]) + (char)(pBuf[4])); > /* FreeBSD sysmouse sends additional data bytes */ > if (pMse->protoPara[4] >= 8) { > - dz = ((char)(pBuf[5] << 1) + (char)(pBuf[6] << 1)) / 2; >+- buttons |= (int)(~pBuf[7] & 0x07) << 3; > + dz = ((signed char)(pBuf[5] << 1) + (signed char)(pBuf[6] << 1)) >> 1; >- buttons |= (int)(~pBuf[7] & 0x07) << 3; >++ buttons |= (int)(~pBuf[7] & 0x7f) << 3; > } > break; >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 43232
: 25274