From df77d0b27ada80b74d4962808a701c7f7f8c1141 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 19 Jul 1997 05:22:59 +0000 Subject: [PATCH] (redisplay_internal): Calculate new_count properly for non-window displays. --- src/xdisp.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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++; -- 2.39.2