Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  9 Apr 2000 16:38:42 +0200 (CEST)
From:      sam@ada.eu.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/17879: moused -E default value is unusable
Message-ID:  <20000409143842.9350E3D9@antinea.enst.fr>

next in thread | raw e-mail | index | archive | help

>Number:         17879
>Category:       bin
>Synopsis:       moused -E default value is unusable
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr  9 07:50:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Samuel Tardieu
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
TELECOM Paris
>Environment:

	5.0-CURRENT on Celeron

>Description:

	moused -3 (emulate three buttons) is supposed to be equivalent to
	moused -3 -E 200 (wait 200 milliseconds before deciding whether
	the two buttons were pressed together or not). In fact, the default
	is 500 milliseconds, which makes the mouse hardly usable (try to
	cut'n'paste in this mode, you will likely miss the begin point).

>How-To-Repeat:

	Run moused -3

>Fix:

	The following patch applies to usr.sbin/moused/moused.c. The man page
	reads the correct value (200 milliseconds) already.

--- moused.c.orig	Sun Apr  9 16:31:11 2000
+++ moused.c	Sun Apr  9 16:31:26 2000
@@ -76,7 +76,7 @@
 #define MAX_CLICKTHRESHOLD	2000	/* 2 seconds */
 #define MAX_BUTTON2TIMEOUT	2000	/* 2 seconds */
 #define DFLT_CLICKTHRESHOLD	 500	/* 0.5 second */
-#define DFLT_BUTTON2TIMEOUT	 500	/* 0.5 second */
+#define DFLT_BUTTON2TIMEOUT	 200	/* 0.2 second */
 
 #define TRUE		1
 #define FALSE		0



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000409143842.9350E3D9>