From 91c37b7e4157338a071375ffb4fd4013a7d782cb Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 13 Dec 2008 05:39:20 +0000 Subject: [PATCH] Update commentary. --- src/xfaces.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xfaces.c b/src/xfaces.c index 4773619468f..acadc434738 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -849,8 +849,10 @@ init_frame_faces (f) /* Make the image cache. */ if (FRAME_WINDOW_P (f)) { + /* We initialize the image cache when creating the first frame + on a terminal, and not during terminal creation. This way, + `x-open-connection' on a tty won't create an image cache. */ if (FRAME_IMAGE_CACHE (f) == NULL) - /* Is that ever possible?? --Stef */ FRAME_IMAGE_CACHE (f) = make_image_cache (); ++FRAME_IMAGE_CACHE (f)->refcount; } -- 2.39.2