From: Chong Yidong Date: Tue, 22 Mar 2011 18:15:52 +0000 (-0400) Subject: Remove an apparently unnecessary XClearWindow call. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~516 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c59da222fa57399540a7c3d13c88209336cc5d01;p=emacs.git Remove an apparently unnecessary XClearWindow call. * src/xterm.c (x_clear_frame): Remove XClearWindow call. This appears not to be necessary, and produces flickering. --- diff --git a/src/ChangeLog b/src/ChangeLog index 6fa2d821565..f489a233683 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-03-22 Chong Yidong + + * xterm.c (x_clear_frame): Remove XClearWindow call. This appears + not to be necessary, and produces flickering. + 2011-03-20 Glenn Morris * config.in: Remove file. diff --git a/src/xterm.c b/src/xterm.c index fd7ffd68e62..f87c22912a4 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -2928,10 +2928,14 @@ x_clear_frame (struct frame *f) /* We don't set the output cursor here because there will always follow an explicit cursor_to. */ BLOCK_INPUT; - XClearWindow (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f)); - /* We have to clear the scroll bars, too. If we have changed - colors or something like that, then they should be notified. */ + /* The following calls have been commented out because they do not + seem to accomplish anything, apart from causing flickering during + window resize. */ + /* XClearWindow (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f)); */ + + /* We have to clear the scroll bars. If we have changed colors or + something like that, then they should be notified. */ x_scroll_bar_clear (f); #if defined (USE_GTK) && defined (USE_TOOLKIT_SCROLL_BARS)