<p></p>
<p>Hi David,</p>
<p>thanks for your interest and sorry for the delay, I was on holiday!</p>
<blockquote>
<p>what exactly did you test please ?</p>
</blockquote>
<p>As you wrote, you can drag a file into the image and an external drop handler will handle it (or a dialog window will appear if there are multiple handlers). You can also drag multiple files into the image and they will be processed sequentially. So this is the only "acceptance test" I did so far.</p>
<p>From a lower-level perspective, you can manipulate <code>HandMorph >> #generateDropFilesEvent:</code> and insert a <code>Transcript showln: {dragType. numFiles}.</code> somewhere to watch the exact events generated by the VM. This PR removes duplicate/wrong events from the recorded list. You can also make sure that the following works:</p>
<ul>
<li>drag a file over the image, but do not drop it, then drag it away - does the image still work?</li>
<li>after that, drag another file into the image and drop it - is the correct file displayed?</li>
<li>try to drag some text into the image - this attempt should be rejected but the image should still accept other files after that</li>
</ul>
<blockquote>
<p>But essentially I wonder (from the discussion) so far, what you are trying, to change with this dnd PR and how I could try to test it.</p>
</blockquote>
<p>In the first step, I only cleaned up the list of DND events generated by the X11 OSVM as described in the PR message. Depending on this PR, I am extending <code>#generateDropFilesEvent:</code> to also process the <code>DragMove</code> and <code>DragLeave</code> events. This allows it not only to drag files into the world itself but wrap them into a Squeak-like TransferMorph that can be dropped into morph or tool by reusing the existing <code>#acceptDroppingMorph:</code> interface. For example, you can drop a file directly into the Workspace without any other modifications. Marcel's idea! :-)</p>
<blockquote>
<p>I don't seem to be able to drag anything out of Squeak.</p>
</blockquote>
<p>That's right, it might have worked on some platform in some ancient past, but nowadays it does not appear to work. But this would be interesting next steps, as well as dragging non-file stuff such as text or images into the image. Stay tuned! :-)</p>
<p>Best,<br>
Christoph</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you commented.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/508#issuecomment-675442508">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW67OUE76CKQD5CSGVDSBJWHTANCNFSM4N4SXVFQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AIJPEW4VZ4YTWC25GMI5ZEDSBJWHTA5CNFSM4N4SXVF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFBBG6TA.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/508#issuecomment-675442508",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/508#issuecomment-675442508",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>