aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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