From: Richard M. Stallman Date: Sat, 19 Jul 1997 05:22:59 +0000 (+0000) Subject: (redisplay_internal): Calculate new_count properly X-Git-Tag: emacs-20.1~1081 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=df77d0b27ada80b74d4962808a701c7f7f8c1141;p=emacs.git (redisplay_internal): Calculate new_count properly for non-window displays. --- diff --git a/src/xdisp.c b/src/xdisp.c index d5a867d22b3..80536a3c4cd 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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++;