comparison src/dispnew.c @ 1821:04fb1d3d6992

JimB's changes since January 18th
author Jim Blandy <jimb@redhat.com>
date Tue, 26 Jan 1993 01:58:16 +0000
parents 4e554ea437ed
children 23ab36427257
comparison
equal deleted inserted replaced
1820:b95bdb97c3e8 1821:04fb1d3d6992
171 Lisp_Object frame, tail; 171 Lisp_Object frame, tail;
172 172
173 for (tail = Vframe_list; CONSP (tail); tail = XCONS (tail)->cdr) 173 for (tail = Vframe_list; CONSP (tail); tail = XCONS (tail)->cdr)
174 { 174 {
175 frame = XCONS (tail)->car; 175 frame = XCONS (tail)->car;
176 if (FRAME_VISIBLE_P (XFRAME (frame))) 176
177 /* If we simply redrew all visible frames, whether or not they
178 were garbaged, then this would make all frames clear and
179 redraw whenever a new frame is created or an existing frame
180 is de-iconified; those events set the global frame_garbaged
181 flag, to which redisplay responds by calling this function.
182
183 This used to redraw all visible frames; the only advantage of
184 that approach is that if a frame changes from invisible to
185 visible without setting its garbaged flag, it still gets
186 redisplayed. But that should never happen; since invisible
187 frames are not updated, they should always be marked as
188 garbaged when they become visible again. If that doesn't
189 happen, it's a bug in the visibility code, not a bug here. */
190 if (FRAME_VISIBLE_P (XFRAME (frame))
191 && FRAME_GARBAGED_P (XFRAME (frame)))
177 Fredraw_frame (frame); 192 Fredraw_frame (frame);
178 } 193 }
179 return Qnil; 194 return Qnil;
180 } 195 }
181 196