[Vm-dev] Fix on management of events in OSX

Eliot Miranda eliot.miranda at gmail.com
Mon Oct 22 13:16:32 UTC 2018


Hi Guille,

> On Oct 22, 2018, at 3:31 AM, Guillermo Polito <guillermopolito at gmail.com> wrote:
> 
> Hi all,
> 
> While playing with SDL on OSX we have noticed that the main window in the VM is randomly eating events that belong to other windows. This happens because we are consuming events regardless the window they come from.
> 
> The corresponding code is in the method pumpRunLoopEventSendAndSignal: in
>    https://github.com/OpenSmalltalk/opensmalltalk-vm/blob/Cog/platforms/iOS/vm/OSX/sqSqueakOSXApplication%2Bevents.m
> 
> I've playing around with making the VM consume only events that come from its own window or from no window (window=null).
> This seems to work correctly, and I've had run into no issues in the last couple of hours.
> 
> I've also prepared a PR with the associated changes in here: https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/295.
> I've put a guard so my code is only valid for PHAROVM builds, but I'd gladly remove the guards if people think this is a good move for all the community.

Yes please!

> Thanks,
> Guille
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20181022/049ef7cf/attachment.html>


More information about the Vm-dev mailing list