Only adding the close icon for dock item when isPermanentDockItem() returns false (or is absent).
Only allowing an item to be dropped into tab bars and panes if its getAllowedLocations() method includes the location (or is absent).
I updated layout to not show the overlay over disallowed locations. It would be nice to also change the cursor from copy to no-drop then too, but I couldn't find where this was being done.
These address the feedback in atom/atom#13977 by:
isPermanentDockItem()
returnsfalse
(or is absent).getAllowedLocations()
method includes the location (or is absent).I updated layout to not show the overlay over disallowed locations. It would be nice to also change the cursor from copy to
no-drop
then too, but I couldn't find where this was being done.