summaryrefslogtreecommitdiff
path: root/src/xterm.h
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/xterm.h
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/xterm.h')
-rw-r--r--src/xterm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xterm.h b/src/xterm.h
index 9b91ee45569..6afd08eab2b 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -1643,7 +1643,8 @@ extern void xic_set_statusarea (struct frame *);
extern void xic_set_xfontset (struct frame *, const char *);
extern bool x_defined_color (struct frame *, const char *, Emacs_Color *,
bool, bool);
-extern void x_preserve_selections (struct x_display_info *, Lisp_Object);
+extern void x_preserve_selections (struct x_display_info *, Lisp_Object,
+ Lisp_Object);
#ifdef HAVE_X_I18N
extern void free_frame_xic (struct frame *);
# if defined HAVE_X_WINDOWS && defined USE_X_TOOLKIT