]> git.eshelyaron.com Git - emacs.git/commit
Implement `allow-same-frame' for NS drag-and-drop
authorPo Lu <luangruo@yahoo.com>
Wed, 1 Jun 2022 05:50:40 +0000 (13:50 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 1 Jun 2022 05:50:40 +0000 (13:50 +0800)
commit76850b26b92ab0f23d56180d000063d4ad6e08ca
tree81571b99def7f0a19680d8ef8232cdf14992af2f
parentf610b4b509013a6c9ef448385575ade01733559c
Implement `allow-same-frame' for NS drag-and-drop

* lisp/term/ns-win.el (x-begin-drag): Implement
`allow-same-frame'.
* src/nsselect.m (Fns_begin_drag): New parameter
`allow-same-frame'.
* src/nsterm.h (@interface EmacsWindow): Update prototypes.
* src/nsterm.m ([EmacsView draggingEntered:]):
([EmacsView prepareForDragOperation:]):
([EmacsView performDragOperation:]): Respect new parameter.
([EmacsWindow beginDrag:forPasteboard:withMode:returnFrameTo:]):
Likewise.
lisp/term/ns-win.el
src/nsselect.m
src/nsterm.h
src/nsterm.m