aboutsummaryrefslogtreecommitdiff
path: root/x11/XFree86-4-libraries/files
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2003-01-24 04:14:16 +0000
committerEric Anholt <anholt@FreeBSD.org>2003-01-24 04:14:16 +0000
commita0f7fe90a025ffba298357bc66e1bfc3b77e6dd3 (patch)
tree3445b9fb21734ce57a2218b66d78ddeb66723500 /x11/XFree86-4-libraries/files
parent859700b4edb9e4791891769b392ef3dada977af9 (diff)
Notes
Diffstat (limited to 'x11/XFree86-4-libraries/files')
-rw-r--r--x11/XFree86-4-libraries/files/patch-mouse.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/x11/XFree86-4-libraries/files/patch-mouse.c b/x11/XFree86-4-libraries/files/patch-mouse.c
index 321c1699f712..11f7a5464154 100644
--- a/x11/XFree86-4-libraries/files/patch-mouse.c
+++ b/x11/XFree86-4-libraries/files/patch-mouse.c
@@ -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;
+