Optimization to avoid redisplaying hidden terminal frames.

* xdisp.c (redisplay_internal): No need to redisplay terminal
frames that are not on top.
This commit is contained in:
Chong Yidong 2012-06-17 18:11:39 +08:00
parent 20ca2e9451
commit 96a313a1da
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2012-06-17 Chong Yidong <cyd@gnu.org>
* xdisp.c (redisplay_internal): No need to redisplay terminal
frames that are not on top.
2012-06-17 Troels Nielsen <bn.troels@gmail.com>
* process.c (make_process): Initialize write_queue.

View file

@ -13317,6 +13317,12 @@ redisplay_internal (void)
{
struct frame *f = XFRAME (frame);
/* We don't have to do anything for unselected terminal
frames. */
if ((FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f))
&& !EQ (FRAME_TTY (f)->top_frame, frame))
continue;
if (FRAME_WINDOW_P (f) || FRAME_TERMCAP_P (f) || f == sf)
{
if (! EQ (frame, selected_frame))