Commit df77d0b2 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(redisplay_internal): Calculate new_count properly

for non-window displays.
parent ca0afed9
...@@ -1331,11 +1331,15 @@ redisplay_internal (preserve_echo_area) ...@@ -1331,11 +1331,15 @@ redisplay_internal (preserve_echo_area)
FOR_EACH_FRAME (tail, frame) FOR_EACH_FRAME (tail, frame)
{ {
int this_is_visible = 0; int this_is_visible = 0;
if (FRAME_WINDOW_P (XFRAME (frame))
|| XFRAME (frame) == selected_frame)
{
if (XFRAME (frame)->visible) if (XFRAME (frame)->visible)
this_is_visible = 1; this_is_visible = 1;
FRAME_SAMPLE_VISIBILITY (XFRAME (frame)); FRAME_SAMPLE_VISIBILITY (XFRAME (frame));
if (XFRAME (frame)->visible) if (XFRAME (frame)->visible)
this_is_visible = 1; this_is_visible = 1;
}
if (this_is_visible) if (this_is_visible)
new_count++; new_count++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment