]> git.eshelyaron.com Git - emacs.git/commit
Improve compatibility with some clients of the Motif drop protocol
authorPo Lu <luangruo@yahoo.com>
Tue, 7 Jun 2022 05:49:41 +0000 (13:49 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 7 Jun 2022 05:49:41 +0000 (13:49 +0800)
commit3bdeedd8aca18e449bd3700c4ab65055fa183201
tree226993cc2ebbfc9c2fb663192ca1754e6a385cc4
parent6871e649b52e3a6154cfe2495372c4652688588f
Improve compatibility with some clients of the Motif drop protocol

* lisp/select.el (x-dnd-targets-list): New defvar.
(xselect-convert-to-targets): Convert XdndSelection based on the
DND targets list.
* src/xfns.c (Fx_begin_drag): Pass new argument.
* src/xselect.c (struct x_selection_request): New struct.
(x_push_current_selection_request):
(x_pop_current_selection_request): New functions.
(x_selection_request_lisp_error, x_reply_selection_request)
(x_handle_selection_request, x_convert_selection)
(syms_of_xselect_for_pdumper): Correctly handle recursive
requests for MULTIPLE by maintaining a stack of selection
requests, converted selections, and other data.
* src/xterm.c (x_dnd_begin_drag_and_drop): New argument
`selection_target_list'.  Bind it to the DND targets list.
(syms_of_xterm): New defvar and associated defsym.
* src/xterm.h: Update prototypes.
lisp/select.el
src/xfns.c
src/xselect.c
src/xterm.c
src/xterm.h