Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Always use target window for drag-and-drop #19247
Requirements for Contributing a Bug Fix
Identify the Bug
Description of the Change
Enhance the "open" IPC message understood by
I could have added a new IPC message and handler for the "always open in sending window" case, like "open-here". I opted to modify the existing "open" handler instead because it will still do an open action with the dropped paths even if the originating window can't be found for whatever reason - if you drag-and-drop onto a window that's closing or something.
It introduces additional complexity to the "open" handler.
Open an Atom window in dev mode:
Drag and drop any file onto the window. Before this change, the dragged file is opened in a new window; after this change, it's opened in the existing window.