]> git.eshelyaron.com Git - emacs.git/commit
Return the correct action from the Lisp side of drag-and-drop
authorPo Lu <luangruo@yahoo.com>
Sat, 2 Jul 2022 01:06:36 +0000 (09:06 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 2 Jul 2022 01:06:36 +0000 (09:06 +0800)
commiteb6d74a26c64e6aa444f21b12a7ab9951a00bfa5
tree728d93e2ab3145473698f02b2726a087feb52005
parent154634dcf0efb3e304b077ba532ae11ab8ed724d
Return the correct action from the Lisp side of drag-and-drop

* lisp/x-dnd.el (x-dnd-handle-drag-n-drop-event): Select
`window' when handling internal DND events.
(x-dnd-handle-unsupported-drop): Return an appropriate action.
* src/keyboard.c (kbd_buffer_get_event):
* src/termhooks.h (enum event_kind): Delete
`UNSUPPORTED_DROP_EVENT'.
* src/xterm.c (x_dnd_send_unsupported_drop): Set flags instead
of recording input event.
(x_clear_dnd_monitors): Rename to `x_clear_dnd_variables'.  Also
clear unsupported drop data.
(x_dnd_begin_drag_and_drop): Run unsupported drop function
inline (and safely), and use its return value if it returned a
symbol.
(syms_of_xterm): Update doc string of
`x-dnd-unsupported-drop-function'.

* src/xterm.h: Update declarations.
lisp/x-dnd.el
src/keyboard.c
src/termhooks.h
src/xterm.c
src/xterm.h