]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xdisp.c: Only check FRAME_RIF for graphical frames
authorAlexander Gramiak <agrambot@gmail.com>
Sat, 27 Apr 2019 03:32:06 +0000 (21:32 -0600)
committerAlexander Gramiak <agrambot@gmail.com>
Sat, 27 Apr 2019 03:34:00 +0000 (21:34 -0600)
src/xdisp.c

index 9f0739e0c6142de657f8b3a66c01c708831402f6..d52d1333a049e1b28b490d4fd9f35f4452bf1fa5 100644 (file)
@@ -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