[BUG][FIX] Unix VM does not update shift/ctrl state properly when mouse moves

Ned Konz ned at bike-nomad.com
Wed Apr 4 21:51:07 UTC 2001


But it causes other problems as well; I'm still looking into this. Ignore the 
prior message.

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.
>
> The enclosed patch to HandleEvents() in sqXWindow.c fixes this (3.0pre2):
>
> @@ -930,6 +989,7 @@
>      case MotionNotify:
>        mousePosition.x= ((XMotionEvent *)&theEvent)->x;
>        mousePosition.y= ((XMotionEvent *)&theEvent)->y;
> +      recordModifierButtons((XButtonEvent *)&theEvent);
>        if (inputEventSemaIndex != 0)
>  	{
>  	  recordMouseEvent((XButtonEvent *)&theEvent, true);

-- 
Ned Konz
currently: Stanwood, WA
email:     ned at bike-nomad.com
homepage:  http://bike-nomad.com





More information about the Squeak-dev mailing list