]> git.eshelyaron.com Git - emacs.git/commitdiff
Add missing part of recent changes to NS DND support
authorPo Lu <luangruo@yahoo.com>
Tue, 31 May 2022 13:14:16 +0000 (21:14 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 31 May 2022 13:14:16 +0000 (21:14 +0800)
* lisp/term/ns-win.el (x-begin-drag): Implement `return-frame'
argument.

lisp/term/ns-win.el

index d90146284f8d31957c37c30fe520913627107768..65abdcf0fbfec8d2d7d88d8918a9daecfc79d5c9 100644 (file)
@@ -895,7 +895,7 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
                                          &context (window-system ns))
   (ns-get-selection selection-symbol target-type))
 
-(defun x-begin-drag (targets &optional action frame _return-frame _allow-current-frame)
+(defun x-begin-drag (targets &optional action frame return-frame _allow-current-frame)
   "SKIP: real doc in xfns.c."
   (unless ns-dnd-selection-value
     (error "No local value for XdndSelection"))
@@ -910,7 +910,7 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
                                           (expand-file-name
                                            ns-dnd-selection-value))))
             pasteboard))
-    (ns-begin-drag frame pasteboard action)))
+    (ns-begin-drag frame pasteboard action return-frame)))
 
 (defun ns-handle-drag-motion (frame x y)
   "Handle mouse movement on FRAME at X and Y during drag-and-drop.