Mercurial > emacs
changeset 19197:bca1fd2554e0
(redisplay_internal): Count only visible frames at first.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 06 Aug 1997 19:43:02 +0000 |
parents | c48684372335 |
children | 49274b3596a7 |
files | src/xdisp.c |
diffstat | 1 files changed, 8 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Wed Aug 06 18:59:33 1997 +0000 +++ b/src/xdisp.c Wed Aug 06 19:43:02 1997 +0000 @@ -906,7 +906,8 @@ { FRAME_SAMPLE_VISIBILITY (XFRAME (frame)); - number_of_visible_frames++; + if (FRAME_VISIBLE_P (XFRAME (frame))) + number_of_visible_frames++; /* Clear out all the display lines in which we will generate the glyphs to display. */ @@ -1327,15 +1328,12 @@ FOR_EACH_FRAME (tail, frame) { int this_is_visible = 0; - 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 (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++;