projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
974a7e5
)
* src/xselect.c (Fx_register_dnd_atom): Use x_intern_cached_atom.
author
Po Lu
<luangruo@yahoo.com>
Thu, 26 May 2022 02:40:54 +0000
(10:40 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Thu, 26 May 2022 02:40:54 +0000
(10:40 +0800)
src/xselect.c
patch
|
blob
|
history
diff --git
a/src/xselect.c
b/src/xselect.c
index 6cb279f9e8da011aada6e82e6e1a2cc6d41a94d9..ae15fecccc590a9408cedbd5215447768039acf3 100644
(file)
--- 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