From 99c637499ec2bc0babb5d98b16f9c578952d54fd Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 1 Feb 2022 10:13:15 +0800 Subject: [PATCH] Only apply last change to the clipboard * lisp/select.el (gui--selection-value-internal): Only return nil if we own the clipboard. --- lisp/select.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/select.el b/lisp/select.el index 420967c1b00..d9f537cfce6 100644 --- a/lisp/select.el +++ b/lisp/select.el @@ -173,6 +173,7 @@ decoded. If `gui-get-selection' signals an error, return nil." (unless (and (memq window-system '(x haiku)) ;; gui-backend-selection-p might be unreliable on other ;; window systems. + (eq type 'CLIPBOARD) (gui-backend-selection-owner-p type)) (let ((request-type (if (memq window-system '(x pgtk)) (or x-select-request-type -- 2.39.5