emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 79d0b1a14c: * src/xselect.c (Fx_register_dnd_atom): Use x_intern_


From: Po Lu
Subject: master 79d0b1a14c: * src/xselect.c (Fx_register_dnd_atom): Use x_intern_cached_atom.
Date: Wed, 25 May 2022 22:41:24 -0400 (EDT)

branch: master
commit 79d0b1a14c19c7bfcf2af694ec333cc6ac8b054b
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    * src/xselect.c (Fx_register_dnd_atom): Use x_intern_cached_atom.
---
 src/xselect.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xselect.c b/src/xselect.c
index 6cb279f9e8..ae15fecccc 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -2496,13 +2496,13 @@ FRAME is on.  If FRAME is nil, the selected frame is 
used.  */)
   ptrdiff_t i;
   struct x_display_info *dpyinfo = FRAME_DISPLAY_INFO (f);
 
-
   if (SYMBOLP (atom))
     x_atom = symbol_to_x_atom (dpyinfo, atom);
   else if (STRINGP (atom))
     {
       block_input ();
-      x_atom = XInternAtom (FRAME_X_DISPLAY (f), SSDATA (atom), False);
+      x_atom = x_intern_cached_atom (dpyinfo, SSDATA (atom),
+                                    false);
       unblock_input ();
     }
   else



reply via email to

[Prev in Thread] Current Thread [Next in Thread]