summaryrefslogtreecommitdiff
path: root/src/xterm.h
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-12-01 15:08:31 +0800
committerPo Lu <luangruo@yahoo.com>2022-12-01 15:08:31 +0800
commitff64a85b2db11b57dda8be0fa0b749870d353590 (patch)
tree20b3477cc40ad740e751147e28b2a73c3eb43e64 /src/xterm.h
parentf19ab1d36c5a39732bef31bc88766b67094b96e7 (diff)
downloademacs-ff64a85b2db11b57dda8be0fa0b749870d353590.tar.gz
Finish up last change with more speedups
* src/xterm.c (x_atom_refs): * src/xterm.h (struct x_display_info): Add some new atoms to be interned at connection setup.
Diffstat (limited to 'src/xterm.h')
-rw-r--r--src/xterm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h
index 6420457a88d..86763dc6e04 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -537,6 +537,12 @@ struct x_display_info
KDE" protocol in x-dnd.el). */
Atom Xatom_DndProtocol, Xatom_DND_PROTOCOL;
+ /* Atoms to make x_intern_cached_atom fast. */
+ Atom Xatom_text_plain_charset_utf_8, Xatom_LENGTH, Xatom_FILE_NAME,
+ Xatom_CHARACTER_POSITION, Xatom_LINE_NUMBER, Xatom_COLUMN_NUMBER,
+ Xatom_OWNER_OS, Xatom_HOST_NAME, Xatom_USER, Xatom_CLASS,
+ Xatom_NAME, Xatom_SAVE_TARGETS;
+
/* The frame (if any) which has the X window that has keyboard focus.
Zero if none. This is examined by Ffocus_frame in xfns.c. Note
that a mere EnterNotify event can set this; if you need to know the