<p>When used with SDL, the events in the main VM windows are not properly handled.</p>
<p>SDL has its own GetMessage / DispatchMessage loop.<br>
The VM implementation was expecting to have a pointer to the message read from GetMessage. Stored in the variable lastMessage.<br>
This variable is Null when the GetMessage is executed by SDL.<br>
So, I have modified the process to recreate the MSG from the information provided by the Window Callback Arguments.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/358'>https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/358</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>When used with SDL, the events in the main VM windows are not properly handled.</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/358/files#diff-0">platforms/win32/vm/sqWin32Window.c</a>
    (57)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/358.patch'>https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/358.patch</a></li>
  <li><a href='https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/358.diff'>https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/358.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/358">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AhLyW5GucYvCf8KyXcbnFj4zuX9vGwyOks5vFy4AgaJpZM4aM6Wa">mute the thread</a>.<img src="https://github.com/notifications/beacon/AhLyWwRvjGlGsicMPMcOiLpkrJowedpnks5vFy4AgaJpZM4aM6Wa.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Win32 Events when using SDL (#358)"}],"action":{"name":"View Pull Request","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/358"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/358",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/358",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>