This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [ANNOUNCEMENT] Server Test 23


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]