This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: [ANNOUNCEMENT] Server Test 23
- To: Harold Hunt <huntharo at msu dot edu>
- Subject: Re: [ANNOUNCEMENT] Server Test 23
- From: Alexander Gottwald <Alexander dot Gottwald at informatik dot tu-chemnitz dot de>
- Date: Mon, 7 May 2001 20:53:01 +0200 (MEST)
- Cc: "Cygx (E-mail)" <cygwin-xfree at sources dot redhat dot com>
On Mon, 7 May 2001, Harold Hunt wrote:
> On Windows NT/2000 the 3 button emulation timeout can be adjusted in
> increments of 10 milliseconds; on Windows 95/98/Me the 3 button emulation
> timeout can be adjusted in increments of roughly 55 milliseconds. This
> limitation in timout resolution is due to using Win32 User timers; perhaps a
> different sort of Win32 timer will be used in the future if users find the
> current timout resolution inadequate.
>
> Use '-emulate3buttons' to enable 3 button mouse emulation; you may also use
> '-emulate3buttons timeout_in_milliseconds' to specify the maximum time
> allowed between the pressing of each button; the default timeout is 50
> milliseconds.
>
It seems we now have a different 3button emulation than other xfree
servers. They always first send Button1 or Button3 and releases them
again if an fake Button2 is generated (as my code did).
Anyway, until no one complains about, it's ok
The following patch fixes an error if the argument -emulate3buttons is
the last argument (no timeout value).
--- InitOutput.c.old Mon May 7 20:48:23 2001
+++ InitOutput.c Mon May 6 20:48:49 2001
@@ -382,7 +382,7 @@
int iE3BTimeout = WIN_DEFAULT_E3B_TIME;
/* Grab the optional timeout value */
- if (i + 1 <= argc
+ if (i + 1 < argc
&& 1 == sscanf (argv[i + 1], "%d",
&iE3BTimeout))
{
bye
ago
--
Alexander.Gottwald@informatik.tu-chemnitz.de
http://www.gotti.org
+49 3725 3498080