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);
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
}
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