mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
Fix bug #14616 with unnecessary redrawing of TTY frames.
src/xdisp.c (prepare_menu_bars): Don't call x_consider_frame_title for TTY frames that are not the top frame on their console.
This commit is contained in:
parent
16ddd1a690
commit
0ee18172b3
2 changed files with 18 additions and 1 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2013-08-07 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* xdisp.c (prepare_menu_bars): Don't call x_consider_frame_title
|
||||
for TTY frames that are not the top frame on their console.
|
||||
(Bug#14616)
|
||||
|
||||
2013-08-07 Martin Rudalics <rudalics@gmx.at>
|
||||
|
||||
* w32term.c (w32fullscreen_hook): Really maximize frame when
|
||||
|
|
|
|||
13
src/xdisp.c
13
src/xdisp.c
|
|
@ -11169,7 +11169,18 @@ prepare_menu_bars (void)
|
|||
{
|
||||
f = XFRAME (frame);
|
||||
if (!EQ (frame, tooltip_frame)
|
||||
&& (FRAME_VISIBLE_P (f) || FRAME_ICONIFIED_P (f)))
|
||||
&& (FRAME_ICONIFIED_P (f)
|
||||
|| FRAME_VISIBLE_P (f) == 1
|
||||
/* Exclude TTY frames that are obscured because they
|
||||
are not the top frame on their console. This is
|
||||
because x_consider_frame_title actually swit6ches
|
||||
to the frame, which for TTY frames means it is
|
||||
marked as garbaged, and will be completely
|
||||
redrawn on the next redisplay cycle. This causes
|
||||
TTY frames to be completely redrawn, when there
|
||||
are more than one of them, even though nothing
|
||||
should be changed on display. */
|
||||
|| (FRAME_VISIBLE_P (f) == 2 && FRAME_WINDOW_P (f))))
|
||||
x_consider_frame_title (frame);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue