]> git.eshelyaron.com Git - emacs.git/commit
Fix preservation of the original value of PRIMARY after dropping on xterm
authorPo Lu <luangruo@yahoo.com>
Thu, 30 Jun 2022 01:45:49 +0000 (09:45 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 30 Jun 2022 01:46:41 +0000 (09:46 +0800)
commite161b5fa3c8241a34961b378501247fb3978e6dc
tree43d3ca65518a6041a149622a104d0fc7a9b2beaf
parentd7dc8c5fe4ac1735a7565473621d7504cc5ef089
Fix preservation of the original value of PRIMARY after dropping on xterm

* src/xselect.c (x_own_selection): New arg `dnd_data'.  Record
it.
(x_get_local_selection, x_handle_selection_request)
(x_convert_selection): Convert the DND data instead if the
situation warrants.
(Fx_own_selection_internal, Fx_get_selection_internal)
(Fx_get_local_selection): Update calls to x_get_local_selection.

* src/xterm.c (x_dnd_do_unsupported_drop): If obtaining
selection ownership failed, return.  Record DND value and
preserve the current value of PRIMARY, if it exists.

* src/xterm.h: Update prototypes.
src/xselect.c
src/xterm.c
src/xterm.h