diff options
| author | Richard M. Stallman | 1997-08-06 19:43:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-08-06 19:43:02 +0000 |
| commit | 8e83f802907ef0caace815bc92c61fb04cdcbd0d (patch) | |
| tree | e0cc98d16795b6939560f98c1d3b4310a3042889 | |
| parent | 266d7a00c258c83a156a977085b79aef4802946d (diff) | |
| download | emacs-8e83f802907ef0caace815bc92c61fb04cdcbd0d.tar.gz emacs-8e83f802907ef0caace815bc92c61fb04cdcbd0d.zip | |
(redisplay_internal): Count only visible frames at first.
| -rw-r--r-- | src/xdisp.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index d088023e6b5..8e274406b83 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -906,7 +906,8 @@ redisplay_internal (preserve_echo_area) | |||
| 906 | { | 906 | { |
| 907 | FRAME_SAMPLE_VISIBILITY (XFRAME (frame)); | 907 | FRAME_SAMPLE_VISIBILITY (XFRAME (frame)); |
| 908 | 908 | ||
| 909 | number_of_visible_frames++; | 909 | if (FRAME_VISIBLE_P (XFRAME (frame))) |
| 910 | number_of_visible_frames++; | ||
| 910 | 911 | ||
| 911 | /* Clear out all the display lines in which we will generate the | 912 | /* Clear out all the display lines in which we will generate the |
| 912 | glyphs to display. */ | 913 | glyphs to display. */ |
| @@ -1327,15 +1328,12 @@ update: | |||
| 1327 | FOR_EACH_FRAME (tail, frame) | 1328 | FOR_EACH_FRAME (tail, frame) |
| 1328 | { | 1329 | { |
| 1329 | int this_is_visible = 0; | 1330 | int this_is_visible = 0; |
| 1330 | if (FRAME_WINDOW_P (XFRAME (frame)) | 1331 | |
| 1331 | || XFRAME (frame) == selected_frame) | 1332 | if (XFRAME (frame)->visible) |
| 1332 | { | 1333 | this_is_visible = 1; |
| 1333 | if (XFRAME (frame)->visible) | 1334 | FRAME_SAMPLE_VISIBILITY (XFRAME (frame)); |
| 1334 | this_is_visible = 1; | 1335 | if (XFRAME (frame)->visible) |
| 1335 | FRAME_SAMPLE_VISIBILITY (XFRAME (frame)); | 1336 | this_is_visible = 1; |
| 1336 | if (XFRAME (frame)->visible) | ||
| 1337 | this_is_visible = 1; | ||
| 1338 | } | ||
| 1339 | 1337 | ||
| 1340 | if (this_is_visible) | 1338 | if (this_is_visible) |
| 1341 | new_count++; | 1339 | new_count++; |