emacs-diffs
[Top][All Lists]
Advanced

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

master 25439cb8ed: Add more predefined atoms for the benefit of DND code


From: Po Lu
Subject: master 25439cb8ed: Add more predefined atoms for the benefit of DND code
Date: Wed, 25 May 2022 06:23:09 -0400 (EDT)

branch: master
commit 25439cb8ed179e79903434161f64a17e5011e81b
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Add more predefined atoms for the benefit of DND code
    
    * src/xterm.c (x_intern_cached_atom): Handle `CARDINAL' and
    `WINDOW' as well.
---
 src/xterm.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/xterm.c b/src/xterm.c
index ae2f4528af..3ca0c15897 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -23629,15 +23629,25 @@ x_intern_cached_atom (struct x_display_info *dpyinfo,
   /* Now do some common predefined atoms.  */
   if (!strcmp (name, "PRIMARY"))
     return XA_PRIMARY;
+
   if (!strcmp (name, "SECONDARY"))
     return XA_SECONDARY;
+
   if (!strcmp (name, "STRING"))
     return XA_STRING;
+
   if (!strcmp (name, "INTEGER"))
     return XA_INTEGER;
+
   if (!strcmp (name, "ATOM"))
     return XA_ATOM;
 
+  if (!strcmp (name, "CARDINAL"))
+    return XA_CARDINAL;
+
+  if (!strcmp (name, "WINDOW"))
+    return XA_WINDOW;
+
   for (i = 0; i < ARRAYELTS (x_atom_refs); ++i)
     {
       ptr = (char *) dpyinfo;



reply via email to

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