]> git.eshelyaron.com Git - emacs.git/commit
Respect test function when performing local drag-and-drop
authorPo Lu <luangruo@yahoo.com>
Mon, 13 Jun 2022 07:01:06 +0000 (15:01 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 13 Jun 2022 07:02:41 +0000 (15:02 +0800)
commita1a435b3f6c7afa910da2256334471ba49010974
treeadd823f06b7f05d4dd4a57d54854e8af2ccae67f
parent7cd1f432c62d5677fb2d44ed05ed9546c3c292dc
Respect test function when performing local drag-and-drop

* lisp/x-dnd.el (x-dnd-test-function): Fix doc string to
describe what is actually accepted.
(x-dnd-known-types, x-dnd-targets-list): Fix coding style.
(x-dnd-handle-native-drop): New function.

* src/xselect.c (x_atom_to_symbol): Export.

* src/xterm.c (x_dnd_note_self_drop): Call new variable to
determine what action to return.
(x_clear_dnd_action): New function.
(x_dnd_begin_drag_and_drop): Respect new variable.
(syms_of_xterm): New defvar `x-dnd-native-test-function'.
* src/xterm.h: Update prototypes.
lisp/x-dnd.el
src/xselect.c
src/xterm.c
src/xterm.h