diff options
author | Po Lu <luangruo@yahoo.com> | 2022-04-06 20:29:30 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-04-06 20:30:24 +0800 |
commit | c0bb11432ee07228d8819cc98c6ce29ccd42ae97 (patch) | |
tree | 38ea48626b74e8fd4fd2826397b7dff1b212b39a /src/xterm.h | |
parent | 406da54bc63b1099b6e51b3d3e025712a16a1912 (diff) | |
download | emacs-c0bb11432ee07228d8819cc98c6ce29ccd42ae97.tar.gz |
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.
Diffstat (limited to 'src/xterm.h')
-rw-r--r-- | src/xterm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h index 4eb16d0c142..d8898162d11 100644 --- a/src/xterm.h +++ b/src/xterm.h @@ -1391,6 +1391,9 @@ extern void x_scroll_bar_configure (GdkEvent *); extern Lisp_Object x_dnd_begin_drag_and_drop (struct frame *, Time, Atom, Lisp_Object, Atom *, const char **, size_t, bool); +extern void x_dnd_do_unsupported_drop (struct x_display_info *, Lisp_Object, + Lisp_Object, Lisp_Object, Window, int, + int, Time); extern void x_set_dnd_targets (Atom *, int); INLINE int |