diff options
| -rw-r--r-- | src/xfaces.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) | |||
| 849 | /* Make the image cache. */ | 849 | /* Make the image cache. */ |
| 850 | if (FRAME_WINDOW_P (f)) | 850 | if (FRAME_WINDOW_P (f)) |
| 851 | { | 851 | { |
| 852 | /* We initialize the image cache when creating the first frame | ||
| 853 | on a terminal, and not during terminal creation. This way, | ||
| 854 | `x-open-connection' on a tty won't create an image cache. */ | ||
| 852 | if (FRAME_IMAGE_CACHE (f) == NULL) | 855 | if (FRAME_IMAGE_CACHE (f) == NULL) |
| 853 | /* Is that ever possible?? --Stef */ | ||
| 854 | FRAME_IMAGE_CACHE (f) = make_image_cache (); | 856 | FRAME_IMAGE_CACHE (f) = make_image_cache (); |
| 855 | ++FRAME_IMAGE_CACHE (f)->refcount; | 857 | ++FRAME_IMAGE_CACHE (f)->refcount; |
| 856 | } | 858 | } |