summaryrefslogtreecommitdiffstats
path: root/x11/XFree86-4-libraries/files
diff options
context:
space:
mode:
authoranholt <anholt@FreeBSD.org>2003-01-24 04:14:16 +0000
committeranholt <anholt@FreeBSD.org>2003-01-24 04:14:16 +0000
commit849a0baf4243c6889f7940762432246949d0493e (patch)
tree2dddf0f6b30e425d74943b1b65fb17c6b2255be0 /x11/XFree86-4-libraries/files
parent3c6e0dba37f6acfc177c8e0f17c56303343607bb (diff)
downloadFreeBSD-ports-849a0baf4243c6889f7940762432246949d0493e.zip
FreeBSD-ports-849a0baf4243c6889f7940762432246949d0493e.tar.gz
[1] Fix missing symbols in i810 driver
[2] Fix xdm on Alpha by using NetBSD's version of Wraphelp.c [3] Report buttons 7 and when using sysmouse protocol [4] Fix missing symbols in r128 driver. [5] Reset /usr/X11R6/bin/X to Xwrapper-4 after install if Xwrapper-4 exists. PR: [1] i386/44203 [2] ports/43664 [3] ports/43232
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 321c169..11f7a54 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;
+
OpenPOWER on IntegriCloud