]> git.eshelyaron.com Git - emacs.git/commit
Add support for dragging text onto windows that don't support any DND protocol
authorPo Lu <luangruo@yahoo.com>
Tue, 5 Apr 2022 03:37:29 +0000 (11:37 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 5 Apr 2022 03:37:29 +0000 (11:37 +0800)
commit7f6c9253838baba7cdd38573179bc0d3a724e25b
treefdb7418f6efd416cbefd0f70bb99c41bc3ee39a9
parentc51d7c9e43f5bb0b030a992b291f31d31702437d
Add support for dragging text onto windows that don't support any DND protocol

* src/xselect.c (x_own_selection): Export function.
(x_handle_selection_request): Handle selection requests to the
pending DND time.
(x_set_pending_dnd_time): New function.

* src/xterm.c (x_dnd_send_unsupported_drop): New function.
Implement according to the suggestions in the XDND protocol
specification.
(x_dnd_get_target_window): Return the toplevel window as well.
(x_dnd_cleanup_drag_and_drop, x_dnd_begin_drag_and_drop)
(x_dnd_update_state, handle_one_xevent): Send unsupported drops
and use last seen toplevel instead of target for `return_frame'.
* src/xterm.h: Update prototypes.
src/xselect.c
src/xterm.c
src/xterm.h