aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-11-11 00:49:45 +0000
committerRichard M. Stallman1995-11-11 00:49:45 +0000
commit57aeea1e474552bb34838242334cea7d953ddda7 (patch)
tree9a91a56f98fcb04df78b5eb69b6448ea07c0e8fe /src
parent4147a3ccb54182987b4a4b75fef936eb11821e79 (diff)
downloademacs-57aeea1e474552bb34838242334cea7d953ddda7.tar.gz
emacs-57aeea1e474552bb34838242334cea7d953ddda7.zip
(set_menu_bar_lines): Record the fact that the window configuration changes.
(set_menu_bar_lines_1): Mark the window as modified.
Diffstat (limited to 'src')
-rw-r--r--src/frame.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c
index 574dc0a8ad8..c6c7cbb95d3 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -130,6 +130,7 @@ set_menu_bar_lines_1 (window, n)
130{ 130{
131 struct window *w = XWINDOW (window); 131 struct window *w = XWINDOW (window);
132 132
133 XSETFASTINT (w->last_modified, 0);
133 XSETFASTINT (w->top, XFASTINT (w->top) + n); 134 XSETFASTINT (w->top, XFASTINT (w->top) + n);
134 XSETFASTINT (w->height, XFASTINT (w->height) - n); 135 XSETFASTINT (w->height, XFASTINT (w->height) - n);
135 136
@@ -165,8 +166,13 @@ set_menu_bar_lines (f, value, oldval)
165 else 166 else
166 nlines = 0; 167 nlines = 0;
167 168
168 FRAME_MENU_BAR_LINES (f) = nlines; 169 if (nlines != olines)
169 set_menu_bar_lines_1 (f->root_window, nlines - olines); 170 {
171 windows_or_buffers_changed++;
172 FRAME_WINDOW_SIZES_CHANGED (f) = 1;
173 FRAME_MENU_BAR_LINES (f) = nlines;
174 set_menu_bar_lines_1 (f->root_window, nlines - olines);
175 }
170} 176}
171 177
172#ifdef MULTI_FRAME 178#ifdef MULTI_FRAME