Mercurial > emacs
changeset 18865:43d28a5c7b68
(redisplay_internal): Calculate new_count properly
for non-window displays.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 19 Jul 1997 05:22:59 +0000 |
parents | 79ffc83169c7 |
children | 04d56f77da0d |
files | src/xdisp.c |
diffstat | 1 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Sat Jul 19 03:29:32 1997 +0000 +++ b/src/xdisp.c Sat Jul 19 05:22:59 1997 +0000 @@ -1331,11 +1331,15 @@ 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++;