]> git.eshelyaron.com Git - emacs.git/commitdiff
Only apply last change to the clipboard
authorPo Lu <luangruo@yahoo.com>
Tue, 1 Feb 2022 02:13:15 +0000 (10:13 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 1 Feb 2022 02:13:15 +0000 (10:13 +0800)
* lisp/select.el (gui--selection-value-internal): Only return
nil if we own the clipboard.

lisp/select.el

index 420967c1b00ce4e25c17d9968acd8bba48dcd2fc..d9f537cfce6019bc97546ce082fa86c56b18b197 100644 (file)
@@ -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