Workaround for mac vms.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Workaround for mac vms.

Igor Stasenko
 
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
               ifTrue:
                       ["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.