[BUG][FIX] Unix VM generates spurious mouseUp when dragging and SHIFT key hit

Ned Konz ned at bike-nomad.com
Thu Apr 5 23:31:57 UTC 2001


On Wednesday 04 April 2001 15:25, Ned Konz wrote:
> On Wednesday 04 April 2001 14:48, Ned Konz wrote:
> > Unlike the Windows VM, the shift and control key state is not reflected
> > in the events generated by mouse movement.
>
> OK, this patch works better. This is for the 3.0pre2 VM.
>
> It also contains my fix for mouse wheel support, and the fix previously
> posted on the list for the incorrect X focus.
>
> Oh yeah, and it #if 0's out the obnoxious mapping of character code 127 to
> 8. Remove the conditional if you would rather have the old behavior (but
> it's better to configure your X keyboard mappings correctly).

I just found another bug in the Unix VM: if you're moving the mouse with a 
button down, and you hit the shift key, you get a mouseUp event even though 
you haven't released the mouse button.

Attached is my latest sqXWindow.c file with all the fixes.

-- 
Ned Konz
currently: Stanwood, WA
email:     ned at bike-nomad.com
homepage:  http://bike-nomad.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sqXWindow.c.diff
Type: text/x-c
Size: 2067 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010405/f0628eb6/sqXWindow.c.bin


More information about the Squeak-dev mailing list