<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, 31 Oct 2018 at 05:48, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div dir="ltr"><div dir="ltr">Hi Guille, Hi John, Hi All,<br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 30, 2018 at 2:10 PM Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Guille,<div><br></div><div>    I'm noticing some lock ups, primarily after resolution changes, or long periods of not in interacting.  I wonder whether there are a class of window events that the loop does not handle and if this produces a lock up, or rather a failure to notice that new events are incoming.  I *think* I have a reproducible case on a MacBookPro whose display resolution is set to "More Space" (see the Displays setting tab). </div><div>Have a VM running on the laptop screen while the laptop is connected to an Apple Cinema display (in this configuration the laptop's retina display reverts to its default resolution).</div><div>Then disconnect the cinema display, at which point the MBP's retina display's resolution changes back to :"More Space" and, at least when I tried this morning, the VM locked up.<br></div></div></blockquote><div><br></div><div>Guille, I think you're off the hook.  I edited the event loop to include:</div><div><br></div><div><div>        if (!(event.window == 0 || event.window == gDelegateApp.window)){</div><div>          printf("breaking with event.window = %lx (gDA.window = %lx)\n", event.window, gDelegateApp.window);</div><div>          break;</div><div>        }</div></div></div></div></div></blockquote><div><br></div><div>Random thought...</div><div>Perhaps when the screen resizes the window bounds are not resized, so for example while the mouse looks like its inside the window, the event coordinates end up outside the window, so the native event dispatching doesn't send the event to the window. It would be interesting to display the bounds-of-the-window together with the event-coordinates and observe how they interact when the screen resolution changes.</div><div><br></div><div>cheers -ben</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div>