summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2004-07-24 17:35:39 +0000
committerMatthieu Herrb <matthieu.herrb@laas.fr>2004-07-24 17:35:39 +0000
commit4ef4fa01917112bd937b32793ade3230de0b0d4b (patch)
tree5243a3815f00e72ff78dd9257d2d29741fee31fc
parent3fed730ac9f9b95503bc457d8688896cbda502f1 (diff)
downloadxorg-driver-xf86-input-mouse-4ef4fa01917112bd937b32793ade3230de0b0d4b.tar.gz
Fix a problem with wsmouse driver loosing events on 64bit architectures
(XFree86 Bugzilla #1438, John Heasley). "To fix this, I've added a mouse buffer (Xisb buffer) "scale" value to the MouseDevPtr type. If set, it is used as structure size of which we want space for a few."
-rw-r--r--src/mouse.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mouse.c b/src/mouse.c
index bb99b9b..ac16cc1 100644
--- a/src/mouse.c
+++ b/src/mouse.c
@@ -1,4 +1,4 @@
-/* $XdotOrg$ */
+/* $XdotOrg: xc/programs/Xserver/hw/xfree86/input/mouse/mouse.c,v 1.2 2004/04/23 19:54:04 eich Exp $ */
/* $XFree86: xc/programs/Xserver/hw/xfree86/input/mouse/mouse.c,v 1.79 2003/11/03 05:11:48 tsi Exp $ */
/*
*
@@ -1636,7 +1636,10 @@ MouseProc(DeviceIntPtr device, int what)
if (pInfo->fd == -1)
xf86Msg(X_WARNING, "%s: cannot open input device\n", pInfo->name);
else {
- pMse->buffer = XisbNew(pInfo->fd, 64);
+ if (pMse->xisbscale)
+ pMse->buffer = XisbNew(pInfo->fd, pMse->xisbscale * 4);
+ else
+ pMse->buffer = XisbNew(pInfo->fd, 64);
if (!pMse->buffer) {
xf86CloseSerial(pInfo->fd);
pInfo->fd = -1;