aboutsummaryrefslogtreecommitdiffstats
path: root/src/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/font.c')
-rw-r--r--src/font.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/font.c b/src/font.c
index 4c27e1fe867..b49664b5f31 100644
--- a/src/font.c
+++ b/src/font.c
@@ -4850,7 +4850,14 @@ DEFUN ("frame-font-cache", Fframe_font_cache, Sframe_font_cache, 0, 1, 0,
4850If FRAME is omitted or nil, use the selected frame. */) 4850If FRAME is omitted or nil, use the selected frame. */)
4851 (Lisp_Object frame) 4851 (Lisp_Object frame)
4852{ 4852{
4853 return FRAME_DISPLAY_INFO (decode_live_frame (frame))->name_list_element; 4853#ifdef HAVE_WINDOW_SYSTEM
4854 struct frame *f = decode_live_frame (frame);
4855
4856 if (FRAME_WINDOW_P (f))
4857 return FRAME_DISPLAY_INFO (f)->name_list_element;
4858 else
4859#endif
4860 return Qnil;
4854} 4861}
4855 4862
4856#endif /* FONT_DEBUG */ 4863#endif /* FONT_DEBUG */