Subject: port-mac/1707: mac68k mouse dragging problem with Cmd+arrow keys
To: None <gnats-bugs@gnats.netbsd.org>
From: Ken Nakata <kenn@remus.rutgers.edu>
List: netbsd-bugs
Date: 10/31/1995 10:44:31
>Number:         1707
>Category:       port-mac
>Synopsis:       mac68k mouse drag problem with Cmd+arrow keys
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 31 11:05:02 1995
>Last-Modified:
>Originator:     Ken Nakata
>Organization:
Rutgers, The State University of New Jersey
>Release:        10/01/95
>Environment:
Apple Macintosh, NetBSD/mac68k, a keyboard,
		a standard or supported 3rd-party mouse
System: NetBSD waller-asy-31.rutgers.edu 1.0A NetBSD 1.0A (FPEDEBUG) #82: Tue Oct 31 09:50:48 EST 1995 kenn@yellowsnow:/home/sys/arch/mac68k/compile/FPEDEBUG mac68k


>Description:
	When one tries to drag mouse with Cmd+arrow keys, mouse movement
	immediately "releases" the mouse button emulated by the keys.

>How-To-Repeat:
	Run X and xterm.  Press Control, Command, and Left-arrow keys and
	hold them down, with the mouse pointer in the xterm window.
	The "VT option" menu will appear.  Then try to move the mouse, in
	order to choose an item from the menu.  The menu will disappear
	immediately after the mouse movement.
>Fix:
	Corrections to the file sys/arch/mac68k/dev/adb.c:
287c287
<       int i, button_bit, max_byte, mask;
---
>       int i, button_bit, max_byte, mask, buttons;
309a310
>               buttons = 0;
314c315
<                               adb_ms_buttons |= button_bit;
---
>                               buttons |= button_bit;
316c317
<                               adb_ms_buttons &= ~button_bit;
---
>                               buttons &= ~button_bit;
322c323
<                               adb_ms_buttons |= button_bit;
---
>                               buttons |= button_bit;
324c325
<                               adb_ms_buttons &= ~button_bit;
---
>                               buttons &= ~button_bit;
327c328
<               new_event.u.m.buttons = adb_ms_buttons;
---
>               new_event.u.m.buttons = adb_ms_buttons | buttons;

>Audit-Trail:
>Unformatted: