Subject: port-mac68k/6444: Wierdness in new keyboard driver
To: None <gnats-bugs@gnats.netbsd.org>
From: None <fb@enteract.com>
List: netbsd-bugs
Date: 11/15/1998 03:37:39
>Number:         6444
>Category:       port-mac68k
>Synopsis:       Problems with keyboard mouse emulation
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 15 01:50:01 1998
>Last-Modified:
>Originator:     Frederick Bruckman
>Organization:

>Release:        November 14, 1998
>Environment:
System: NetBSD fb.sa.enteract.com 1.3H NetBSD 1.3H (FB) #141: 
Sat Nov 14 11:03:32 CST 1998 fredb@fb.sa.enteract.com:
/usr/src/sys/arch/mac68k/compile/FB mac68k


>Description:
	There are a couple of weird problems with the keyboard mouse
	emulation. These appeared concurrently with the new adb/mouse/keyboard
	driver last month. Most notable is that the "middle" button,
	Option-2 or Option-LA, can no longer drag the scrollbar in a
	standard xterm. The Control-Middle and Control-Right (Option-3 or 
	Option-RA), pop-up menus are also impossible to use--the pop-up
	window goes away as soon as the mouse is moved. The ability to hold
	down the "button" is entirely missing. The one, real mouse button
	works just fine, but it's emulation, Option-1, does the same as the
	other two.

	There's more. It is possible to select text in an xterm with the one
	button mouse, copy the text with Option-3, then paste it into
	another xterm with Shift-Option-2, but then everything gets wierd.  
	It appears that the caps-lock is set, but not exactly, as none of
	of my custom twm function key bindings work; this is not the case if
	caps-lock is simply set. The mouse now doesn't work quite right
	either: typically I can iconize an xterm, but I can't deiconize any
	of them. This condition passes after a few minutes of random key
	presses and mouse clicks, or perhaps it just times out. (I haven't
	figured that out yet.) Sometimes, however, the destination xterm is
	totally hammered, and can only be killed and restarted. Recall that
	there's no way to access the middle button menu to do a reset. 
	In fact, you can get some action on the middle and right button 
	xterm menus if you move the mouse very quickly, but it's impossible 
	to control.
>How-To-Repeat:
	Compile a -current kernel; run stock Xmac68k X server with a one
	button mouse; experiment with 2nd and 3rd button emulation, as above.
	The description assumes the ALTXBUTTONS option, but it seems to 
	affect the Option-Arrow Keys equally.
>Fix:
>Audit-Trail:
>Unformatted: