From f257a0a5b44b58e4d0dcd9cf2d66b31ab80500a5 Mon Sep 17 00:00:00 2001 From: Alexander Gramiak Date: Fri, 26 Apr 2019 21:32:06 -0600 Subject: [PATCH] * src/xdisp.c: Only check FRAME_RIF for graphical frames --- src/xdisp.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index 9f0739e0c61..d52d1333a04 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -11599,7 +11599,8 @@ clear_garbaged_frames (void) clear_current_matrices (f); #ifdef HAVE_WINDOW_SYSTEM - if (FRAME_RIF (f)->clear_under_internal_border) + if (FRAME_WINDOW_P (f) + && FRAME_RIF (f)->clear_under_internal_border) FRAME_RIF (f)->clear_under_internal_border (f); #endif fset_redisplay (f); @@ -11671,7 +11672,8 @@ echo_area_display (bool update_frame_p) n = redisplay_mode_lines (FRAME_ROOT_WINDOW (f), false); #ifdef HAVE_WINDOW_SYSTEM - if (FRAME_RIF (f)->clear_under_internal_border) + if (FRAME_WINDOW_P (f) + && FRAME_RIF (f)->clear_under_internal_border) FRAME_RIF (f)->clear_under_internal_border (f); #endif } @@ -14497,7 +14499,8 @@ redisplay_internal (void) goto retry; #ifdef HAVE_WINDOW_SYSTEM - if (FRAME_RIF (f)->clear_under_internal_border) + if (FRAME_WINDOW_P (f) + && FRAME_RIF (f)->clear_under_internal_border) FRAME_RIF (f)->clear_under_internal_border (f); #endif /* Prevent various kinds of signals during display -- 2.39.2