<p>This PR aligns the default <code>numFiles</code> value recorded for <code>DragEnter</code>, <code>DragMove</code>, and <code>DragLeave</code> events recorded by the X11 implementation of the DropPlugin, which was <code>1</code>, to the default value used by the Win32 implementation of the plugin, which is <code>0</code>.</p>
<p>The motivation for this change is to unify the event protocol along with different platforms. It would technically be highly expensive and questionable to find out this value before the drop event has been recorded. Concretely, Win32 does not support this at all without switching the library, and on Linux, this would require a performance-extensive ping-pong of "Target to source: Please hand a copy of all dragged files", "Source to target: I converted these files for you", "Target to source: Thank you, but I was only interested into their total number" messages. (However, interestingly macOS appears to support this (I could not yet test it) and <a href="https://github.com/codefrau/SqueakJS/">https://github.com/codefrau/SqueakJS/</a> could do so, too.)</p>
<p>While pursuing the same master plan, this PR is not dependent nor reverse-dependent on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="637958920" data-permission-text="Title is private" data-url="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/508" data-hovercard-type="pull_request" data-hovercard-url="/OpenSmalltalk/opensmalltalk-vm/pull/508/hovercard" href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/508">#508</a>. They can be merged independently of each other.</p>
<p>Please review and merge if you agree. I hereby confirm that I did not observe any regressions when dragging files or folders into a recent Squeak image.</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/514'>https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/514</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>X11 DropPlugin: Don't specify numFiles= 1 before DragDrop</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/514/files#diff-62a759e1d06520211b9aef8b4a55433a">platforms/unix/vm-display-X11/sqUnixXdnd.c</a>
    (14)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/514.patch'>https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/514.patch</a></li>
  <li><a href='https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/514.diff'>https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/514.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/514">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW7SQVBGGBWX7VVW22LSBO4VHANCNFSM4QE3K24A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AIJPEW4DZQ7XCTX4GABMBVLSBO4VHA5CNFSM4QE3K24KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4KFDE5TA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/514",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/514",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>