diff options
| author | Po Lu | 2022-05-26 10:40:54 +0800 |
|---|---|---|
| committer | Po Lu | 2022-05-26 10:40:54 +0800 |
| commit | 79d0b1a14c19c7bfcf2af694ec333cc6ac8b054b (patch) | |
| tree | ecb3c1a716fad8b71b9681339cf7cbdb71d59378 | |
| parent | 974a7e541cc28613cbeed9e0195d945d614d97f4 (diff) | |
| download | emacs-79d0b1a14c19c7bfcf2af694ec333cc6ac8b054b.tar.gz emacs-79d0b1a14c19c7bfcf2af694ec333cc6ac8b054b.zip | |
* src/xselect.c (Fx_register_dnd_atom): Use x_intern_cached_atom.
| -rw-r--r-- | src/xselect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xselect.c b/src/xselect.c index 6cb279f9e8d..ae15fecccc5 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -2496,13 +2496,13 @@ FRAME is on. If FRAME is nil, the selected frame is used. */) | |||
| 2496 | ptrdiff_t i; | 2496 | ptrdiff_t i; |
| 2497 | struct x_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); | 2497 | struct x_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); |
| 2498 | 2498 | ||
| 2499 | |||
| 2500 | if (SYMBOLP (atom)) | 2499 | if (SYMBOLP (atom)) |
| 2501 | x_atom = symbol_to_x_atom (dpyinfo, atom); | 2500 | x_atom = symbol_to_x_atom (dpyinfo, atom); |
| 2502 | else if (STRINGP (atom)) | 2501 | else if (STRINGP (atom)) |
| 2503 | { | 2502 | { |
| 2504 | block_input (); | 2503 | block_input (); |
| 2505 | x_atom = XInternAtom (FRAME_X_DISPLAY (f), SSDATA (atom), False); | 2504 | x_atom = x_intern_cached_atom (dpyinfo, SSDATA (atom), |
| 2505 | false); | ||
| 2506 | unblock_input (); | 2506 | unblock_input (); |
| 2507 | } | 2507 | } |
| 2508 | else | 2508 | else |