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.
This commit is contained in:
Po Lu 2022-04-06 08:55:30 +08:00
parent 8ef37913d3
commit bda8f5deec

View file

@ -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;