comparison src/xdisp.c @ 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 ab7fae992236
children 015e9d877871
comparison
equal deleted inserted replaced
18864:79ffc83169c7 18865:43d28a5c7b68
1329 int new_count = 0; 1329 int new_count = 0;
1330 1330
1331 FOR_EACH_FRAME (tail, frame) 1331 FOR_EACH_FRAME (tail, frame)
1332 { 1332 {
1333 int this_is_visible = 0; 1333 int this_is_visible = 0;
1334 if (XFRAME (frame)->visible) 1334 if (FRAME_WINDOW_P (XFRAME (frame))
1335 this_is_visible = 1; 1335 || XFRAME (frame) == selected_frame)
1336 FRAME_SAMPLE_VISIBILITY (XFRAME (frame)); 1336 {
1337 if (XFRAME (frame)->visible) 1337 if (XFRAME (frame)->visible)
1338 this_is_visible = 1; 1338 this_is_visible = 1;
1339 FRAME_SAMPLE_VISIBILITY (XFRAME (frame));
1340 if (XFRAME (frame)->visible)
1341 this_is_visible = 1;
1342 }
1339 1343
1340 if (this_is_visible) 1344 if (this_is_visible)
1341 new_count++; 1345 new_count++;
1342 } 1346 }
1343 1347