From: Gerd Moellmann Date: Tue, 30 Oct 2001 16:58:14 +0000 (+0000) Subject: (clear_garbaged_frames): Redraw the frame only if its X-Git-Tag: ttn-vms-21-2-B4~18999 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6bb958822d87d69ed25a9db62ee0d9506f8622ad;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 3c9e0222a82..2278c05c60c 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -6974,9 +6974,14 @@ clear_garbaged_frames () if (FRAME_VISIBLE_P (f) && FRAME_GARBAGED_P (f)) { + if (f->resized_p) + { + Fredraw_frame (frame); + fprintf (stderr, "redraw frame\n"); + } clear_current_matrices (f); f->garbaged = 0; - Fredraw_frame (frame); + f->resized_p = 0; } }