diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-06-10 11:19:35 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-06-10 11:19:35 -0700 |
commit | e41e9a0e24877b0bc81e08df396f59115f8636da (patch) | |
tree | c0cf7e2838761b2c26047aeeac6415bb542bf5a0 /src/xfns.c | |
parent | 6a54b501af0633c909c96de867c805222fde970c (diff) | |
parent | 529a133c390049085db38e7c8f745d650a2626ee (diff) | |
download | emacs-e41e9a0e24877b0bc81e08df396f59115f8636da.tar.gz |
Merge from trunk.
Diffstat (limited to 'src/xfns.c')
-rw-r--r-- | src/xfns.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xfns.c b/src/xfns.c index 25fa05c0a6e..8417db7d6e5 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -1227,7 +1227,7 @@ x_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) } #else /* not USE_X_TOOLKIT && not USE_GTK */ FRAME_MENU_BAR_LINES (f) = nlines; - change_window_heights (f->root_window, nlines - olines); + resize_frame_windows (f, FRAME_LINES (f), 0); /* If the menu bar height gets changed, the internal border below the top margin has to be cleared. Also, if the menu bar gets @@ -1266,6 +1266,7 @@ x_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) } #endif /* not USE_X_TOOLKIT && not USE_GTK */ adjust_glyphs (f); + run_window_configuration_change_hook (f); } @@ -1326,7 +1327,7 @@ x_set_tool_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) } FRAME_TOOL_BAR_LINES (f) = nlines; - change_window_heights (root_window, delta); + resize_frame_windows (f, FRAME_LINES (f), 0); adjust_glyphs (f); /* We also have to make sure that the internal border at the top of @@ -1362,6 +1363,9 @@ x_set_tool_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) if (WINDOWP (f->tool_bar_window)) clear_glyph_matrix (XWINDOW (f->tool_bar_window)->current_matrix); } + + run_window_configuration_change_hook (f); + } |