[Vm-dev] Workaround for mac vms.

Igor Stasenko siguctua at gmail.com
Mon Jul 18 13:48:42 UTC 2011

While hacking with Stephane, we found this little workaround in event handling.
I just wanna to ask , is it still the case?

generateMouseEvent: evtBuf
       "Generate the appropriate mouse event for the given raw event buffer"

       | position buttons modifiers type trail stamp oldButtons evtChanged |
       evtBuf first = lastEventBuffer first
                       ["Workaround for Mac VM bug, *always*
generating 3 events on clicks"

                       evtChanged := false.
                       3 to: evtBuf size
                               do: [:i | (lastEventBuffer at: i) =
(evtBuf at: i) ifFalse: [evtChanged := true]].
                       evtChanged ifFalse: [^nil]].

Best regards,
Igor Stasenko AKA sig.

More information about the Vm-dev mailing list