<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 4, 2022 at 12:18 AM Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de">marcel.taeumel@hpi.de</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><div id="gmail-m_-6124445793017344343__MailbirdStyleContent" style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);text-align:left" dir="ltr">
                                        Hi Tim --<div><br></div><div>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></div></blockquote><div><br></div><div class="gmail_default" style="font-size:small">This is tangential, apologies, but I'm posting here to get visibility.  At least in my updated trunk image, without "Fast window drag for Morphic" enabled a dragged window disappears while it is being dragged.</div><div class="gmail_default" style="font-size:small"></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><div id="gmail-m_-6124445793017344343__MailbirdStyleContent" style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);text-align:left" dir="ltr"><div><br></div><div>Best,</div><div>Marcel</div><div></div><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-top:20px;margin-left:0px;padding-left:10px">
                        <p style="color:rgb(170,170,170);margin-top:10px">Am 02.04.2022 19:32:41 schrieb tim Rowledge <<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>>:</p><div style="font-family:Arial,Helvetica,sans-serif">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><br>Surely the logic ought the include testing to see if the SystemWindow would ever be interested in accepting the drop?<br><br>> On 2022-04-02, at 10:11 AM, Tim Johnson <u></u> wrote:<br>> <br>> Hi,<br>> <br>> 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>> <br>> IMHO these windows would not accept the drop, so they should not become active.<br>> <br>> 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>> <br>> SystemWindow>>#mouseEnterDragging: evt<br>>     "unlock children for drop operations"<br>> <br>>    self flag: #performance. "mt: There may be no need to change appearance if no widget wants the drop."<br>>   self isActive ifTrue: [self lookFocused].<br>> <br>>  (self isActive not and: [evt hand hasSubmorphs]) ifTrue: [<br>>                "self activate." "unlock contents for drop"<br>>           evt hand addMouseListener: self. "for drop completion on submorph"<br>>      ].<br>> <br>> <br>> 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>> <br>> Thanks<br>> Tim<br>> <br>> <br>> <br><br><br>tim<br>--<br>tim Rowledge; <a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" target="_blank">http://www.rowledge.org/tim</a><br>Strange OpCodes: DCVP: Destroy another Computer Via Phone-link<br><br><br><br><u></u></div></blockquote>
                                        </div></div><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div></div>