summaryrefslogtreecommitdiff
path: root/helm-files.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thievol@posteo.net>2021-07-26 10:28:52 +0200
committerThierry Volpiatto <thievol@posteo.net>2021-07-26 10:28:52 +0200
commitace7cd0c1335a133e60b75f9cbaf05414dd02f07 (patch)
tree7571c724cf1de88f6971e35425e4d853ffcdfe8e /helm-files.el
parent3ff6e02b629ada63f9bc7e4814a39bd5f7b108eb (diff)
Use helm-initial-frame in drag-and-drop HFF fn
Diffstat (limited to 'helm-files.el')
-rw-r--r--helm-files.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/helm-files.el b/helm-files.el
index 691b6b46..44cba9b2 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -4622,11 +4622,8 @@ Possible values are `copy', `rsync' or `rename'.")
(cl-assert (memq helm-ff-drag-mouse-1-default-action
'(copy rsync rename)))
(let* ((win-or-frame (posn-window (event-end event)))
- (target-frame (if (framep win-or-frame)
- (with-selected-window
- (get-buffer-window
- helm-current-buffer 'visible)
- (selected-frame))))
+ (target-frame (when (framep win-or-frame)
+ helm-initial-frame))
(target (with-selected-window
(if target-frame
(frame-selected-window target-frame)