aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2022-04-06 08:55:30 +0800
committerPo Lu2022-04-06 08:57:02 +0800
commitbda8f5deec7dcbe35530f4a0b9f00cdec3805449 (patch)
tree021d40693736993b72abcc46b51eb6dc71bb114b
parent8ef37913d3be5ff518018acb6b0144d6e559b5ba (diff)
downloademacs-bda8f5deec7dcbe35530f4a0b9f00cdec3805449.tar.gz
emacs-bda8f5deec7dcbe35530f4a0b9f00cdec3805449.zip
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.
-rw-r--r--src/xterm.c5
1 files changed, 4 insertions, 1 deletions
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
2824 root_y = dest_y; 2824 root_y = dest_y;
2825 } 2825 }
2826 2826
2827 x_own_selection (QPRIMARY, Qnil, frame); 2827 x_own_selection (QPRIMARY,
2828 assq_no_quit (QPRIMARY,
2829 dpyinfo->terminal->Vselection_alist),
2830 frame);
2828 2831
2829 event.xbutton.window = child; 2832 event.xbutton.window = child;
2830 event.xbutton.x = dest_x; 2833 event.xbutton.x = dest_x;