changeset 100398:0941c26336f4

Update commentary.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 13 Dec 2008 05:39:20 +0000
parents 07fabb2ead9b
children 8d6fe7463149
files src/xfaces.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Sat Dec 13 04:20:11 2008 +0000
+++ b/src/xfaces.c	Sat Dec 13 05:39:20 2008 +0000
@@ -849,8 +849,10 @@
   /* 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;
     }