branch: elpa/helm
commit fde69a9a38072eb00d2ad57168ed9c8d7ac084d6
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    Retrieve minibuffer focus after dropping
---
 helm-files.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/helm-files.el b/helm-files.el
index d67672bef9..d8cca64ade 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -5667,8 +5667,12 @@ When no suitable place to drop is found ask to drop to
                         ((car windows)
                          (with-selected-window it default-directory)))))
     (if (memq helm-ff-drag-mouse-1-default-action '(copy rsync))
-        (helm-find-files-do-action
-         helm-ff-drag-mouse-1-default-action target)
+        (progn
+          (helm-find-files-do-action
+           helm-ff-drag-mouse-1-default-action target)
+          ;; Retrieve focus after dropping
+          (with-selected-frame helm-initial-frame
+            (select-window (minibuffer-window))))
       (helm-run-after-exit
        #'helm-find-files-do-action
        helm-ff-drag-mouse-1-default-action target))))

Reply via email to