summaryrefslogtreecommitdiff
path: root/src/frame.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2021-09-15 16:14:30 +0300
committerEli Zaretskii <eliz@gnu.org>2021-09-15 16:14:30 +0300
commit773c186914627c6be4ab13fcfa62928675ee94e1 (patch)
tree12ba98951277dec08c162b3b80b6e6341f9a4a26 /src/frame.h
parent6b631f490adf66d94a3f566215e7efb7b068a128 (diff)
downloademacs-773c186914627c6be4ab13fcfa62928675ee94e1.tar.gz
Avoid crashes due to clearing of a frame's face cache
* src/xfaces.c (clear_face_cache): Don't clear fonts and faces of a frame that is being redisplayed, just because it's time for some routine maintenance. (Bug#50571) * src/xdisp.c (redisplay_internal): * src/frame.h (struct frame) <inhibit_clear_image_cache>: Update commentary of using this struct member.
Diffstat (limited to 'src/frame.h')
-rw-r--r--src/frame.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frame.h b/src/frame.h
index a8ad011889d..3dd76805dd2 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -449,8 +449,8 @@ struct frame
/* Non-zero if this frame's faces need to be recomputed. */
bool_bf face_change : 1;
- /* Non-zero if this frame's image cache cannot be freed because the
- frame is in the process of being redisplayed. */
+ /* Non-zero if this frame's image cache and face cache cannot be
+ freed because the frame is in the process of being redisplayed. */
bool_bf inhibit_clear_image_cache : 1;
/* True when new_width or new_height were set by change_frame_size,