summaryrefslogtreecommitdiff
path: root/src/xselect.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-07-13 11:01:59 +0800
committerPo Lu <luangruo@yahoo.com>2022-07-13 11:01:59 +0800
commit6be201cf51e0b1c69e713dec318cef18eef4c617 (patch)
tree29881ff11c9756de0ba62f3aa6a6c275cb216a39 /src/xselect.c
parent113a6a0a885c8bfb1f3c75a8a985a73686662113 (diff)
downloademacs-6be201cf51e0b1c69e713dec318cef18eef4c617.tar.gz
Fix closing displays when preserving selections is enabled
* src/frame.c (delete_frame): Bind `x-auto-preserve-selections' to nil if deleting display. * src/xselect.c (x_clear_frame_selections): Pass original frame to that function. * src/xterm.c (x_preserve_selections): Fix determining the new owner. (syms_of_xterm): New defsym `x-auto-preserve-selections'. * src/xterm.h: Update prototypes.
Diffstat (limited to 'src/xselect.c')
-rw-r--r--src/xselect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xselect.c b/src/xselect.c
index baab2c5c18f..1750cfb8bd8 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -1128,7 +1128,7 @@ x_clear_frame_selections (struct frame *f)
}
if (x_auto_preserve_selections)
- x_preserve_selections (dpyinfo, lost);
+ x_preserve_selections (dpyinfo, lost, frame);
}
/* True if any properties for DISPLAY and WINDOW