]> git.eshelyaron.com Git - emacs.git/commitdiff
(redisplay_internal): Calculate new_count properly
authorRichard M. Stallman <rms@gnu.org>
Sat, 19 Jul 1997 05:22:59 +0000 (05:22 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 19 Jul 1997 05:22:59 +0000 (05:22 +0000)
for non-window displays.

src/xdisp.c

index d5a867d22b3f1bcbf0ce89f53bc64e2d1ac36f82..80536a3c4cd8a7398c5da1f1c223d79da0319f13 100644 (file)
@@ -1331,11 +1331,15 @@ update:
       FOR_EACH_FRAME (tail, frame)
        {
          int this_is_visible = 0;
-         if (XFRAME (frame)->visible)
-           this_is_visible = 1;
-         FRAME_SAMPLE_VISIBILITY (XFRAME (frame));
-         if (XFRAME (frame)->visible)
-           this_is_visible = 1;
+         if (FRAME_WINDOW_P (XFRAME (frame))
+             || XFRAME (frame) == selected_frame)
+           {
+             if (XFRAME (frame)->visible)
+               this_is_visible = 1;
+             FRAME_SAMPLE_VISIBILITY (XFRAME (frame));
+             if (XFRAME (frame)->visible)
+               this_is_visible = 1;
+           }
 
          if (this_is_visible)
            new_count++;