From: Po Lu Date: Wed, 6 Apr 2022 00:55:30 +0000 (+0800) Subject: Preserve contents of PRIMARY when sending unsupported drop X-Git-Tag: emacs-29.0.90~1931^2~752 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bda8f5deec7dcbe35530f4a0b9f00cdec3805449;p=emacs.git Preserve contents of PRIMARY when sending unsupported drop * src/xterm.c (x_dnd_send_unsupported_drop): Set local value of PRIMARY to the preexisting selection value, if any. --- diff --git a/src/xterm.c b/src/xterm.c index 37bbd5d7e1c..926fb9b0482 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -2824,7 +2824,10 @@ x_dnd_send_unsupported_drop (struct x_display_info *dpyinfo, Window target_windo root_y = dest_y; } - x_own_selection (QPRIMARY, Qnil, frame); + x_own_selection (QPRIMARY, + assq_no_quit (QPRIMARY, + dpyinfo->terminal->Vselection_alist), + frame); event.xbutton.window = child; event.xbutton.x = dest_x;