diff options
author | Po Lu <luangruo@yahoo.com> | 2022-06-13 15:01:06 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-06-13 15:02:41 +0800 |
commit | a1a435b3f6c7afa910da2256334471ba49010974 (patch) | |
tree | add823f06b7f05d4dd4a57d54854e8af2ccae67f /src/xterm.h | |
parent | 7cd1f432c62d5677fb2d44ed05ed9546c3c292dc (diff) | |
download | emacs-a1a435b3f6c7afa910da2256334471ba49010974.tar.gz |
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.
Diffstat (limited to 'src/xterm.h')
-rw-r--r-- | src/xterm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h index 25d145c6c0a..25c2453ee78 100644 --- a/src/xterm.h +++ b/src/xterm.h @@ -1535,6 +1535,7 @@ extern void x_handle_property_notify (const XPropertyEvent *); extern void x_handle_selection_notify (const XSelectionEvent *); extern void x_handle_selection_event (struct selection_input_event *); extern void x_clear_frame_selections (struct frame *); +extern Lisp_Object x_atom_to_symbol (struct x_display_info *, Atom); extern bool x_handle_dnd_message (struct frame *, const XClientMessageEvent *, |