[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:48:35 UTC 2001


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