]> code.delx.au - gnu-emacs/commitdiff
Fix slow redisplay when daemon frame exists
authorEli Zaretskii <eliz@gnu.org>
Thu, 1 Oct 2015 17:21:28 +0000 (20:21 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 1 Oct 2015 17:21:28 +0000 (20:21 +0300)
* src/xdisp.c (redisplay_internal): Don't consider daemon frames
when looking for frames that need to be redisplayed.  (Bug#21597)

src/xdisp.c

index a2a6a81d4ec775e717c0647d52dd39229b31681d..ce27af2e67bf071b0dcc612e584534bde3a8a9de 100644 (file)
@@ -13388,6 +13388,8 @@ redisplay_internal (void)
 
   inhibit_free_realized_faces = false;
 
+  consider_some_frames_p = false;
+
   /* If face_change, init_iterator will free all realized faces, which
      includes the faces referenced from current matrices.  So, we
      can't reuse current matrices in this case.  */
@@ -13762,7 +13764,9 @@ redisplay_internal (void)
     {
       FOR_EACH_FRAME (tail, frame)
        {
-         if (XFRAME (frame)->redisplay && XFRAME (frame) != sf)
+         if (XFRAME (frame)->redisplay
+             && XFRAME (frame) != sf
+             && !FRAME_INITIAL_P (XFRAME (frame)))
            {
              consider_some_frames_p = true;
              break;