[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master bda8f5deec: Preserve contents of PRIMARY when sending unsupported
From: |
Po Lu |
Subject: |
master bda8f5deec: Preserve contents of PRIMARY when sending unsupported drop |
Date: |
Tue, 5 Apr 2022 20:57:16 -0400 (EDT) |
branch: master
commit bda8f5deec7dcbe35530f4a0b9f00cdec3805449
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
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.
---
src/xterm.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/xterm.c b/src/xterm.c
index 37bbd5d7e1..926fb9b048 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master bda8f5deec: Preserve contents of PRIMARY when sending unsupported drop,
Po Lu <=