]> git.eshelyaron.com Git - emacs.git/commit
Move some X11 drag and drop processing to Lisp
authorPo Lu <luangruo@yahoo.com>
Wed, 6 Apr 2022 12:29:30 +0000 (20:29 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 6 Apr 2022 12:30:24 +0000 (20:30 +0800)
commitc0bb11432ee07228d8819cc98c6ce29ccd42ae97
tree38ea48626b74e8fd4fd2826397b7dff1b212b39a
parent406da54bc63b1099b6e51b3d3e025712a16a1912
Move some X11 drag and drop processing to Lisp

* lisp/term/x-win.el: Set unsupported drop function.
* lisp/x-dnd.el (x-dnd-handle-unsupported-drop): New function.
* src/keyboard.c (kbd_buffer_get_event): Handle
UNSUPPORTED_DROP_EVENT.
* src/termhooks.h (enum event_kind): New event
`UNSUPPORTED_DROP_EVENT'.
* src/xterm.c (x_dnd_send_unsupported_drop): Send those events
instead.
(x_dnd_do_unsupported_drop): Move actual unsupported drop
handling here.
(syms_of_xterm): New variable `x-dnd-unsupported-drop-function'.
* src/xterm.h: Update prototypes.
lisp/term/x-win.el
lisp/x-dnd.el
src/keyboard.c
src/termhooks.h
src/xterm.c
src/xterm.h