<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Marcel, all,<div class=""><br class=""></div><div class="">Regarding the behavior of Browsers (etc.) becoming active when other tool-type windows are dragged over them and Fast Window Dragging is turned off:  why does this happen even when "drop in" (this used to be called "accept drops"*) is disabled?  </div><div class=""><br class=""></div><div class="">I recall the argument being made that the window can't know if any of its submorphs want the drop.  But doesn't the parent morph's "accept drops" setting take precedence over child morphs?  Or am I mistakenly applying non-Morphic logic to Morphic?  Not super clear from reading <a href="http://wiki.squeak.org/squeak/6194" class="">http://wiki.squeak.org/squeak/6194</a> .  (The practical implications of this are interesting to think about... and probably have been for years.  :) )</div><div class=""><br class=""></div><div class=""><img apple-inline="yes" id="554C7C74-CB4A-4C70-8B54-82E4A4DB68CC" src="cid:8C9696E1-9EC7-40BA-A172-0C0BCC3D0C86@gateway.sonic.net" class=""></div><div class=""><br class=""></div><div class="">There was a message posted to another thread on this list around the time I brought this up in which I detected (perhaps incorrectly) a sort-of "eye-rolling" tone (e.g. "ha ha, who would want to drop Workspaces into Browsers, amiright? ha ha [they don't know what they're missing!]").  This suggests to me that there must be other projects in Squeak which find it useful to have this behavior in the default configuration of the shipping image.  But what are those use cases?  Certainly it's not about "teleportation"-style morphs or any other custom windows which could have "accept drops" turned on and are not Browsers or Workspaces.  There must be some reason it's useful to have this behavior in the default shipping image even though (1) it slows down performance/introduces visible lag, (2) it seems (to me) to be a minority use case that e.g. a Workspace would be dropped onto a Browser, and (3) the morphs in question are not accepting drops...?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Tim J</div><div class=""><br class=""></div><div class="">* I don't want to get into the semantics wars, but in US English, "drop in" typically is used to describe an office or medical facility that does not require reservations, e.g. a "drop-in clinic."  I guess someone made the decision that "accept drops" was no longer acceptable...?  It is still referred to as such in various documentation:   <a href="http://wiki.squeak.org/squeak/6511" class="">http://wiki.squeak.org/squeak/6511</a> <a href="https://wiki.squeak.org/squeak/6194" class="">https://wiki.squeak.org/squeak/6194</a> </div><div class=""><br class=""></div><div class="">'Accept' is such common terminology w/r/t Morphs, it is a verb in the 'accept' / 'repel' protocol... </div><div class=""><a href="https://github.com/hpi-swa-lab/SqueakByExample-english/blob/8287133e110d49c218e0a2ad6d6dc913adfe9b43/Morphic/Morphic.tex" class="">https://github.com/hpi-swa-lab/SqueakByExample-english/blob/8287133e110d49c218e0a2ad6d6dc913adfe9b43/Morphic/Morphic.tex</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Apr 4, 2022, at 12:18 AM, Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de" class="">marcel.taeumel@hpi.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div id="__MailbirdStyleContent" style="font-size: 10pt; font-family: Arial; text-align: left;" dir="ltr" class="">
                                        Hi Tim --<div class=""><br class=""></div><div class="">Yes, thanks for the pointer. The question is whether we can know that not a single element in a window would like to accept the drop. I don't think we can. Windows can host all kinds of stuff, even other worlds (or instances of PasteUpMorph). Hmm... </div><div class=""><br class=""></div><div class="">Best,</div><div class="">Marcel</div><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;"><p style="color: #AAAAAA; margin-top: 10px;" class="">Am 02.04.2022 19:32:41 schrieb tim Rowledge <<a href="mailto:tim@rowledge.org" class="">tim@rowledge.org</a>>:</p><div style="font-family:Arial,Helvetica,sans-serif" class="">It's a very long time since I played in this part of the sandpit but this seems like it might be amenable to the Morph>>#wantsDroppedMorph:event:/wantsToBeDroppedInto: protocol. And maybe the Morph>>#repelsMorph:event:/#rejectDropEvent: stuff too?<br class=""><br class="">Surely the logic ought the include testing to see if the SystemWindow would ever be interested in accepting the drop?<br class=""><br class="">> On 2022-04-02, at 10:11 AM, Tim Johnson <digit@sonic.net class=""> wrote:<br class="">> <br class="">> Hi,<br class="">> <br class="">> I've been surprised about how SystemWindows become active when dragging other SystemWindows, Inspectors, PluggableXYZ windows (or morphs in general?) on top of (or over) them.  It produces a noticable lag in the UI.  This is only evident when the preference 'Fast window drag for Morphic' is turned OFF and whole windows are being dragged.  (Having Soft shadows enabled slows it down further, I think.)<br class="">> <br class="">> IMHO these windows would not accept the drop, so they should not become active.<br class="">> <br class="">> I did some spying on the UI process and found that all code panes are being redrawn (?) when dragging morphs over SystemWindows.  This is easily and quickly defeated/remedied by commenting out 'self activate' in the following method, as follows:<br class="">> <br class="">> SystemWindow>>#mouseEnterDragging: evt<br class="">>    "unlock children for drop operations"<br class="">> <br class="">>      self flag: #performance. "mt: There may be no need to change appearance if no widget wants the drop."<br class="">>        self isActive ifTrue: [self lookFocused].<br class="">> <br class="">>    (self isActive not and: [evt hand hasSubmorphs]) ifTrue: [<br class="">>             "self activate." "unlock contents for drop"<br class="">>                evt hand addMouseListener: self. "for drop completion on submorph"<br class="">>   ].<br class="">> <br class="">> <br class="">> My question:  could the drag-and-drop "#wantsXYZ" protocol be followed here to optimize this?  Or perhaps there is some other way to /not/ make the window active (and thus redraw all its panes, I think?) when a morph /it does not want/ is dragged over it?<br class="">> <br class="">> Thanks<br class="">> Tim<br class="">> <br class="">> <br class="">> <br class=""><br class=""><br class="">tim<br class="">--<br class="">tim Rowledge; <a href="mailto:tim@rowledge.org" class="">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" class="">http://www.rowledge.org/tim</a><br class="">Strange OpCodes: DCVP: Destroy another Computer Via Phone-link<br class=""><br class=""><br class=""><br class=""></digit@sonic.net></div></blockquote>
                                        </div></div><br class=""></div></blockquote></div><br class=""></div></body></html>