From: Po Lu Date: Wed, 25 May 2022 10:21:33 +0000 (+0800) Subject: Add more predefined atoms for the benefit of DND code X-Git-Tag: emacs-29.0.90~1910^2~434 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=25439cb8ed179e79903434161f64a17e5011e81b;p=emacs.git Add more predefined atoms for the benefit of DND code * src/xterm.c (x_intern_cached_atom): Handle `CARDINAL' and `WINDOW' as well. --- diff --git a/src/xterm.c b/src/xterm.c index ae2f4528aff..3ca0c158973 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;