1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

(set_menu_bar_lines): Record the fact that the window configuration changes.

(set_menu_bar_lines_1): Mark the window as modified.
This commit is contained in:
Richard M. Stallman 1995-11-11 00:49:45 +00:00
parent 4147a3ccb5
commit 57aeea1e47

View File

@ -130,6 +130,7 @@ set_menu_bar_lines_1 (window, n)
{
struct window *w = XWINDOW (window);
XSETFASTINT (w->last_modified, 0);
XSETFASTINT (w->top, XFASTINT (w->top) + n);
XSETFASTINT (w->height, XFASTINT (w->height) - n);
@ -165,8 +166,13 @@ set_menu_bar_lines (f, value, oldval)
else
nlines = 0;
FRAME_MENU_BAR_LINES (f) = nlines;
set_menu_bar_lines_1 (f->root_window, nlines - olines);
if (nlines != olines)
{
windows_or_buffers_changed++;
FRAME_WINDOW_SIZES_CHANGED (f) = 1;
FRAME_MENU_BAR_LINES (f) = nlines;
set_menu_bar_lines_1 (f->root_window, nlines - olines);
}
}
#ifdef MULTI_FRAME