<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi Karl --<div class="mb_sig"></div>
                                        <div><br></div><div>If your changeset is the same as in Morphic-kfr.2002, this is not quite right. However, I hear your concerns that slower systems struggle with drag operations due to windows highlighting as a drop target even if not desired.</div><div><br></div><div>One simple fix for your personal image is to just hack #mouseEnterDragging:. But that's not for Trunk.</div><div><br></div><div>Also, please just be aware of that #performance flag I already documented there. So any correct improvement should be tested against that concern. It makes no sense to propose a proper fix without removing that flag comment. :-)</div><div><br></div><div>Best,</div><div>Marcel</div><blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 06.06.2022 10:12:58 schrieb karl ramberg <karlramberg@gmail.com>:</p><div style="font-family:Arial,Helvetica,sans-serif">
<div dir="ltr">Doh, error in previous change set. Hopefully fixed here<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 6, 2022 at 10:02 AM karl ramberg <<a href="mailto:karlramberg@gmail.com">karlramberg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex;border-left: 1px solid rgb(204,204,204);padding-left: 1ex;min-width: 500px"><div dir="ltr"><div>This change set  should  filter out unwanted drag and drop events for SystemWindows, so the window  doesn't activate on all kinds of mouse drags.</div><div><br></div><div>It needs some testing. <br></div><div><br></div><div>Best,</div><div>Karl <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 5, 2022 at 11:54 PM Tim Johnson <<a href="mailto:digit@sonic.net" target="_blank">digit@sonic.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex;border-left: 1px solid rgb(204,204,204);padding-left: 1ex;min-width: 500px"><div>Hi Karl,<div><br></div><div>Thanks for your insight here.  My original message in this thread was indeed re: SystemWindow>>mouseEnterDragging: and how commenting out "self activate." improves my experience — possibly at the expense of whatever facility this is supposed to support.  But without knowing which facility it is supposed to support, I couldn't test any changes I might make.  Now I can.  :) <div><br></div><div>It's a rainy day and I'm stuck at home, so I went through them one by one and show my findings below.  This was to see if they (a) had an impact on the window becoming active, (b) were related to a feature I used, or (c) failed to respond as expected when "self activate" is commented out. (By "disabled by default", below, I mean the default set of preferences one gets from skipping the preference wizard at image startup.)</div><div><br></div><div>I might return to this by experimenting with your suggestion — "SystemWindows could here reject all other mouseOverDragging events than dragging TransferMorphs if the SystemWindows dropEnable is false."  Thanks.</div><div><div><br></div><div>tl;dr of below — (1) toggling the preferences did not impact the "windows become active" behavior — even if, perhaps, one of them /should/...?  while also, (2) the bottom two mechanisms do indeed require the window to be active for the submorphs to accept the drops (a valuable learning experience for me).</div><div><br></div><div><div><div>** '<b>System window embed ok</b>' </div><div>- disabled by default.  </div><div>- toggling this does not seem affect this behavior of "windows becoming active while other windows are dragged over them."  </div><div>- relates to feature I like and use:  dragging windows (inspectors, browsers, drawing morphs, whatever) over & "into" a project thumbnail on the world background.  I use this to separate my work out into different projects as my work diverges.  </div><div>- broken by commenting out "self activate"?  - no</div><div><br></div><div>** '<b>Browse with drag 'n' drop'</b> </div><div>- enabled by default.  </div><div>- toggling this does not seem affect this behavior of "windows becoming active while other windows are dragged over them."  </div><div>- relates to feature I like and use:  dragging a method list item from one (right-most) 'messageList' pane to another message category in the category list, to change its category.  Though I think this facility pre-dates the condition of windows becoming active for any morph being dragged over them(?).</div><div>- broken by commenting out "self activate"?  - yes</div><div><br></div><div>** '<b>Draggable Text Selections</b>' </div><div>- enabled by default.  </div><div>- toggling this does not seem affect this behavior of "windows becoming active while other windows are dragged over them."</div><div><div>- relates to feature I like and use:  I am not a user of this but it looks cool.</div><div>- broken by commenting out "self activate"?  - yes</div><div><br></div><div><br></div><div>The above would probably look better as a Swiki page;  I may do that but it's time to go do something else now.  :) </div><div><br></div><div>Best,</div><div>Tim J</div><div><br></div><div><br></div><div><div><blockquote type="cite" style="min-width: 500px"><div>On Jun 5, 2022, at 8:10 AM, karl ramberg <<a href="mailto:karlramberg@gmail.com" target="_blank">karlramberg@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div>There are different preferences acting here:</div><div><br></div><div>'System window embed ok' affects dropping windows on a PasteUpMorph or a ProjectViewMorph.</div><div>When preference is true, SystemWindows drops into the morph.<br></div><div>Sometimes useful, other times not what you want. This is probably not what you see in this case.</div><div><br></div><div>'Browse with drag 'n' drop' and 'Draggable Text Selections' <br></div><div>You can drag a text selection to another text pane or a list item to another list.</div><div>SystemWindows could here reject all other mouseOverDragging events than dragging TransferMorphs if the SystemWindows dropEnable is false.<br></div><div>See SystemWindow>>mouseEnterDragging:</div><div><br></div><div>Best,</div><div>Karl<br></div><div><br> </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 4, 2022 at 9:56 PM Tim Johnson <<a href="mailto:digit@sonic.net" target="_blank">digit@sonic.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex;border-left: 1px solid rgb(204,204,204);padding-left: 1ex;min-width: 500px"><div>Hi Marcel, all,<div><br></div><div>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><br></div><div>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" target="_blank">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><br></div><div><span id="gmail-m_-7639240130076847187gmail-m_6650172650150157346cid:181344df171ba325de91"><Screen Shot 2022-06-04 at 11.43.35 AM.png></span></div><div><br></div><div>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><br></div><div>Thanks,</div><div>Tim J</div><div><br></div><div>* 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" target="_blank">http://wiki.squeak.org/squeak/6511</a> <a href="https://wiki.squeak.org/squeak/6194" target="_blank">https://wiki.squeak.org/squeak/6194</a> </div><div><br></div><div>'Accept' is such common terminology w/r/t Morphs, it is a verb in the 'accept' / 'repel' protocol... </div><div><a href="https://github.com/hpi-swa-lab/SqueakByExample-english/blob/8287133e110d49c218e0a2ad6d6dc913adfe9b43/Morphic/Morphic.tex" target="_blank">https://github.com/hpi-swa-lab/SqueakByExample-english/blob/8287133e110d49c218e0a2ad6d6dc913adfe9b43/Morphic/Morphic.tex</a></div><div><br></div><div><br></div><div><br></div><div><div><blockquote type="cite" style="min-width: 500px"><div>On Apr 4, 2022, at 12:18 AM, Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de" target="_blank">marcel.taeumel@hpi.de</a>> wrote:</div><br><div><div><div id="gmail-m_-7639240130076847187gmail-m_6650172650150157346gmail-m_-2110097080124049717__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;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><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;min-width: 500px"><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></div></blockquote></div><br></div></div><br>
</blockquote></div>
<br></div></blockquote></div><br></div></div></div></div></div></div></div><br>
</blockquote></div>
</blockquote></div>
</div></blockquote></div>