diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.c | 2 | ||||
| -rw-r--r-- | src/frame.h | 4 | ||||
| -rw-r--r-- | src/w32fns.c | 6 | ||||
| -rw-r--r-- | src/xdisp.c | 12 | ||||
| -rw-r--r-- | src/xfns.c | 6 |
5 files changed, 4 insertions, 26 deletions
diff --git a/src/frame.c b/src/frame.c index 6debcb8e7bc..b782b094c22 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -634,7 +634,6 @@ make_frame (bool mini_p) | |||
| 634 | f->garbaged = true; | 634 | f->garbaged = true; |
| 635 | f->can_x_set_window_size = false; | 635 | f->can_x_set_window_size = false; |
| 636 | f->after_make_frame = false; | 636 | f->after_make_frame = false; |
| 637 | f->tool_bar_redisplayed_once = false; | ||
| 638 | f->column_width = 1; /* !FRAME_WINDOW_P value. */ | 637 | f->column_width = 1; /* !FRAME_WINDOW_P value. */ |
| 639 | f->line_height = 1; /* !FRAME_WINDOW_P value. */ | 638 | f->line_height = 1; /* !FRAME_WINDOW_P value. */ |
| 640 | #ifdef HAVE_WINDOW_SYSTEM | 639 | #ifdef HAVE_WINDOW_SYSTEM |
| @@ -3634,7 +3633,6 @@ x_set_font (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 3634 | #endif | 3633 | #endif |
| 3635 | /* Recalculate toolbar height. */ | 3634 | /* Recalculate toolbar height. */ |
| 3636 | f->n_tool_bar_rows = 0; | 3635 | f->n_tool_bar_rows = 0; |
| 3637 | f->tool_bar_redisplayed_once = false; | ||
| 3638 | 3636 | ||
| 3639 | /* Ensure we redraw it. */ | 3637 | /* Ensure we redraw it. */ |
| 3640 | clear_current_matrices (f); | 3638 | clear_current_matrices (f); |
diff --git a/src/frame.h b/src/frame.h index 17e356d32cf..546bede213d 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -335,10 +335,6 @@ struct frame | |||
| 335 | /* Set to true after this frame was made by `make-frame'. */ | 335 | /* Set to true after this frame was made by `make-frame'. */ |
| 336 | bool_bf after_make_frame : 1; | 336 | bool_bf after_make_frame : 1; |
| 337 | 337 | ||
| 338 | /* True means tool bar has been redisplayed at least once in current | ||
| 339 | session. */ | ||
| 340 | bool_bf tool_bar_redisplayed_once : 1; | ||
| 341 | |||
| 342 | /* Bitfield area ends here. */ | 338 | /* Bitfield area ends here. */ |
| 343 | 339 | ||
| 344 | /* Number of lines (rounded up) of tool bar. REMOVE THIS */ | 340 | /* Number of lines (rounded up) of tool bar. REMOVE THIS */ |
diff --git a/src/w32fns.c b/src/w32fns.c index d8e22e2aa9c..48218e3bfd2 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -1763,10 +1763,8 @@ x_change_tool_bar_height (struct frame *f, int height) | |||
| 1763 | f->n_tool_bar_rows = 0; | 1763 | f->n_tool_bar_rows = 0; |
| 1764 | 1764 | ||
| 1765 | adjust_frame_size (f, -1, -1, | 1765 | adjust_frame_size (f, -1, -1, |
| 1766 | ((!f->tool_bar_redisplayed_once | 1766 | ((NILP (fullscreen = get_frame_param (f, Qfullscreen)) |
| 1767 | && (NILP (fullscreen = | 1767 | || EQ (fullscreen, Qfullwidth)) ? 1 |
| 1768 | get_frame_param (f, Qfullscreen)) | ||
| 1769 | || EQ (fullscreen, Qfullwidth))) ? 1 | ||
| 1770 | : (old_height == 0 || height == 0) ? 2 | 1768 | : (old_height == 0 || height == 0) ? 2 |
| 1771 | : 4), | 1769 | : 4), |
| 1772 | false, Qtool_bar_lines); | 1770 | false, Qtool_bar_lines); |
diff --git a/src/xdisp.c b/src/xdisp.c index bb31697cc4f..b86307776e2 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -13735,18 +13735,6 @@ redisplay_internal (void) | |||
| 13735 | continue; | 13735 | continue; |
| 13736 | 13736 | ||
| 13737 | retry_frame: | 13737 | retry_frame: |
| 13738 | |||
| 13739 | #if defined (HAVE_WINDOW_SYSTEM) && !defined (USE_GTK) && !defined (HAVE_NS) | ||
| 13740 | /* Redisplay internal tool bar if this is the first time so we | ||
| 13741 | can adjust the frame height right now, if necessary. */ | ||
| 13742 | if (!f->tool_bar_redisplayed_once) | ||
| 13743 | { | ||
| 13744 | if (redisplay_tool_bar (f)) | ||
| 13745 | adjust_frame_glyphs (f); | ||
| 13746 | f->tool_bar_redisplayed_once = true; | ||
| 13747 | } | ||
| 13748 | #endif | ||
| 13749 | |||
| 13750 | if (FRAME_WINDOW_P (f) || FRAME_TERMCAP_P (f) || f == sf) | 13738 | if (FRAME_WINDOW_P (f) || FRAME_TERMCAP_P (f) || f == sf) |
| 13751 | { | 13739 | { |
| 13752 | bool gcscrollbars | 13740 | bool gcscrollbars |
diff --git a/src/xfns.c b/src/xfns.c index 0079e7b4357..42d32f6d9c2 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1189,10 +1189,8 @@ x_change_tool_bar_height (struct frame *f, int height) | |||
| 1189 | f->n_tool_bar_rows = 0; | 1189 | f->n_tool_bar_rows = 0; |
| 1190 | 1190 | ||
| 1191 | adjust_frame_size (f, -1, -1, | 1191 | adjust_frame_size (f, -1, -1, |
| 1192 | ((!f->tool_bar_redisplayed_once | 1192 | ((NILP (fullscreen = get_frame_param (f, Qfullscreen)) |
| 1193 | && (NILP (fullscreen = | 1193 | || EQ (fullscreen, Qfullwidth)) ? 1 |
| 1194 | get_frame_param (f, Qfullscreen)) | ||
| 1195 | || EQ (fullscreen, Qfullwidth))) ? 1 | ||
| 1196 | : (old_height == 0 || height == 0) ? 2 | 1194 | : (old_height == 0 || height == 0) ? 2 |
| 1197 | : 4), | 1195 | : 4), |
| 1198 | false, Qtool_bar_lines); | 1196 | false, Qtool_bar_lines); |