From: Gerd Moellmann Date: Tue, 30 Oct 2001 17:03:09 +0000 (+0000) Subject: (clear_garbaged_frames): Redraw the frame only if its X-Git-Tag: emacs-21.2~407 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=16472f675cd207012ab77cfca470f5a023dbc37c;p=emacs.git (clear_garbaged_frames): Redraw the frame only if its resized_p flag is set. If not set, use the much less flickering method previously used. --- diff --git a/src/xdisp.c b/src/xdisp.c index f5a1bd0a931..471ffbc8b4a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -6982,9 +6982,10 @@ clear_garbaged_frames () if (FRAME_VISIBLE_P (f) && FRAME_GARBAGED_P (f)) { + if (f->resized_p) + Fredraw_frame (frame); clear_current_matrices (f); - f->garbaged = 0; - Fredraw_frame (frame); + f->garbaged = f->resized_p = 0; } }