From 25439cb8ed179e79903434161f64a17e5011e81b Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 25 May 2022 18:21:33 +0800 Subject: [PATCH] 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 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; -- 2.39.2