Subject: CVS commit: [netbsd-2-0] xsrc/xfree/xc/programs/Xserver/hw/xfree86/input/mouse
To: None <source-changes@NetBSD.org>
From: Matthias Scheler <tron@netbsd.org>
List: source-changes
Date: 07/24/2004 11:40:31
Module Name:	xsrc
Committed By:	tron
Date:		Sat Jul 24 11:40:31 UTC 2004

Modified Files:
	xsrc/xfree/xc/programs/Xserver/hw/xfree86/input/mouse [netbsd-2-0]:
	    mouse.c

Log Message:
Pull up revision 1.4 (requested by heas in ticket #709):
Add a buffer "scale" hint to MouseDevPtr type.  If set, MouseProc() uses it
as a structure size * 4 for the size of the mouse input buffer (Xisb buffer),
else the static size of 64 bytes is allocated.
On LP64, the wscons_event struct is 8 bytes larger.  If more than 2 events
were queued, wsconsReadInput() would get the first 16 bytes of the 3rd event
and thus have bogus events the next time (and until the queue was drained).
Chose this path over handling short reads in wsconsReadInput() so we could
have a buffer large enough to hold more than just 2 events.
Addresses my PR 26189
XFree PR 1438


To generate a diff of this commit:
cvs rdiff -r1.2 -r1.2.2.1 \
    xsrc/xfree/xc/programs/Xserver/hw/xfree86/input/mouse/mouse.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.