aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-06 06:46:58 +0000
committerRichard M. Stallman1993-06-06 06:46:58 +0000
commit9223a96afd960fd4b3bc887bd96aa23ef42c8579 (patch)
tree31e4410173ae4bf232319515e331c51bcc179e33 /src
parent02a9b6e456a5ab26b94f957ad5aaa99ff1863842 (diff)
downloademacs-9223a96afd960fd4b3bc887bd96aa23ef42c8579.tar.gz
emacs-9223a96afd960fd4b3bc887bd96aa23ef42c8579.zip
(Fredraw_display): Redraw all visible frames.
(redraw_garbaged_frames): New function.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 9f57065c2e4..7c1da91986d 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -201,26 +201,26 @@ DEFUN ("redraw-display", Fredraw_display, Sredraw_display, 0, 0, "",
201 Lisp_Object tail, frame; 201 Lisp_Object tail, frame;
202 202
203 FOR_EACH_FRAME (tail, frame) 203 FOR_EACH_FRAME (tail, frame)
204 /* If we simply redrew all visible frames, whether or not they 204 if (FRAME_VISIBLE_P (XFRAME (frame)))
205 were garbaged, then this would make all frames clear and
206 nredraw whenever a new frame is created or an existing frame
207 is de-iconified; those events set the global frame_garbaged
208 flag, to which redisplay responds by calling this function.
209
210 This used to redraw all visible frames; the only advantage of
211 that approach is that if a frame changes from invisible to
212 visible without setting its garbaged flag, it still gets
213 redisplayed. But that should never happen; since invisible
214 frames are not updated, they should always be marked as
215 garbaged when they become visible again. If that doesn't
216 happen, it's a bug in the visibility code, not a bug here. */
217 if (FRAME_VISIBLE_P (XFRAME (frame))
218 && FRAME_GARBAGED_P (XFRAME (frame)))
219 Fredraw_frame (frame); 205 Fredraw_frame (frame);
220 206
221 return Qnil; 207 return Qnil;
222} 208}
223 209
210/* This is used when frame_garbaged is set.
211 Redraw the individual frames marked as garbaged. */
212
213void
214redraw_garbaged_frames ()
215{
216 Lisp_Object tail, frame;
217
218 FOR_EACH_FRAME (tail, frame)
219 if (FRAME_VISIBLE_P (XFRAME (frame))
220 && FRAME_GARBAGED_P (XFRAME (frame)))
221 Fredraw_frame (frame);
222}
223
224 224
225static struct frame_glyphs * 225static struct frame_glyphs *
226make_frame_glyphs (frame, empty) 226make_frame_glyphs (frame, empty)