diff options
| author | Richard M. Stallman | 1996-09-01 20:49:29 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-09-01 20:49:29 +0000 |
| commit | 2218e4d9c4bfc599c32a205cda39557516214d49 (patch) | |
| tree | 7265fcd13a2c1c948cbfaa520d1926e02c40b825 /src | |
| parent | 61298010c6fbf05ea6dc57fa019311e0a2a9c551 (diff) | |
| download | emacs-2218e4d9c4bfc599c32a205cda39557516214d49.tar.gz emacs-2218e4d9c4bfc599c32a205cda39557516214d49.zip | |
(x_term_init): Initialize Xatom_FONT member.
(x_new_font): Use Xatom_FONT member.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index 93c906ef67c..82866096bd0 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -4773,7 +4773,6 @@ x_new_font (f, fontname) | |||
| 4773 | char *full_name; | 4773 | char *full_name; |
| 4774 | XFontStruct *font; | 4774 | XFontStruct *font; |
| 4775 | int n_fonts; | 4775 | int n_fonts; |
| 4776 | Atom FONT_atom; | ||
| 4777 | 4776 | ||
| 4778 | /* Try to find a character-cell font in the list. */ | 4777 | /* Try to find a character-cell font in the list. */ |
| 4779 | #if 0 | 4778 | #if 0 |
| @@ -4819,10 +4818,9 @@ x_new_font (f, fontname) | |||
| 4819 | 4818 | ||
| 4820 | /* Try to get the full name of FONT. Put it in full_name. */ | 4819 | /* Try to get the full name of FONT. Put it in full_name. */ |
| 4821 | full_name = 0; | 4820 | full_name = 0; |
| 4822 | FONT_atom = XInternAtom (FRAME_X_DISPLAY (f), "FONT", False); | ||
| 4823 | for (i = 0; i < font->n_properties; i++) | 4821 | for (i = 0; i < font->n_properties; i++) |
| 4824 | { | 4822 | { |
| 4825 | if (FONT_atom == font->properties[i].name) | 4823 | if (FRAME_X_DISPLAY_INFO (f)->Xatom_FONT == font->properties[i].name) |
| 4826 | { | 4824 | { |
| 4827 | char *name = XGetAtomName (FRAME_X_DISPLAY (f), | 4825 | char *name = XGetAtomName (FRAME_X_DISPLAY (f), |
| 4828 | (Atom) (font->properties[i].card32)); | 4826 | (Atom) (font->properties[i].card32)); |
| @@ -6043,6 +6041,8 @@ x_term_init (display_name, xrm_option, resource_name) | |||
| 6043 | = XInternAtom (dpyinfo->display, "WM_MOVED", False); | 6041 | = XInternAtom (dpyinfo->display, "WM_MOVED", False); |
| 6044 | dpyinfo->Xatom_editres | 6042 | dpyinfo->Xatom_editres |
| 6045 | = XInternAtom (dpyinfo->display, "Editres", False); | 6043 | = XInternAtom (dpyinfo->display, "Editres", False); |
| 6044 | dpyinfo->Xatom_FONT | ||
| 6045 | = XInternAtom (dpyinfo->display, "FONT", False); | ||
| 6046 | dpyinfo->Xatom_CLIPBOARD | 6046 | dpyinfo->Xatom_CLIPBOARD |
| 6047 | = XInternAtom (dpyinfo->display, "CLIPBOARD", False); | 6047 | = XInternAtom (dpyinfo->display, "CLIPBOARD", False); |
| 6048 | dpyinfo->Xatom_TIMESTAMP | 6048 | dpyinfo->Xatom_TIMESTAMP |