branch: externals/xclip commit 8b25fbb70815e7e6dbc7f664048e681474b6d531 Author: brett.kerwin <brett.ker...@mamber.net> Commit: Stefan Monnier <monn...@iro.umontreal.ca>
(xclip--hidden-frame): Survive the death of the hidden frame Copyright-paperwork-exempt: yes --- xclip.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xclip.el b/xclip.el index ed38add19d..0390994ae1 100644 --- a/xclip.el +++ b/xclip.el @@ -1,6 +1,6 @@ ;;; xclip.el --- Copy&paste GUI clipboard from text terminal -*- lexical-binding:t -*- -;; Copyright (C) 2007-2022 Free Software Foundation, Inc. +;; Copyright (C) 2007-2024 Free Software Foundation, Inc. ;; Author: Leo Liu <sdl....@gmail.com> ;; Keywords: convenience, tools @@ -228,7 +228,7 @@ TYPE and DATA are the same as for `gui-set-selection'." (defvar xclip--hidden-frame nil) (defun xclip--hidden-frame () - (or xclip--hidden-frame + (or (and (frame-live-p xclip--hidden-frame) xclip--hidden-frame) (setq xclip--hidden-frame (make-frame-on-display (getenv "DISPLAY") '((visibility . nil)