diff options
| author | Gerd Moellmann | 2000-09-29 13:18:44 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-09-29 13:18:44 +0000 |
| commit | ccba751c45860f1d0b8d352503df9426589b6c90 (patch) | |
| tree | f40b7bcaf808a8152667c876f24a18e51ed77fec /src | |
| parent | e7c52f1fc4cc42354e0e885872166862c6748558 (diff) | |
| download | emacs-ccba751c45860f1d0b8d352503df9426589b6c90.tar.gz emacs-ccba751c45860f1d0b8d352503df9426589b6c90.zip | |
(x_set_tool_bar_lines): Clear frame when tool bar
disappears.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c index a2bc485dcb3..457ceb202c7 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -2035,6 +2035,19 @@ x_set_tool_bar_lines (f, value, oldval) | |||
| 2035 | FRAME_TOOL_BAR_LINES (f) = nlines; | 2035 | FRAME_TOOL_BAR_LINES (f) = nlines; |
| 2036 | x_change_window_heights (root_window, delta); | 2036 | x_change_window_heights (root_window, delta); |
| 2037 | adjust_glyphs (f); | 2037 | adjust_glyphs (f); |
| 2038 | |||
| 2039 | /* We also have to make sure that the internal border at the top of | ||
| 2040 | the frame, below the menu bar or tool bar, is redrawn when the | ||
| 2041 | tool bar disappears. This is so because the internal border is | ||
| 2042 | below the tool bar if one is displayed, but is below the menu bar | ||
| 2043 | if there isn't a tool bar. The tool bar draws into the area | ||
| 2044 | below the menu bar. */ | ||
| 2045 | if (FRAME_X_WINDOW (f) && FRAME_TOOL_BAR_LINES (f) == 0) | ||
| 2046 | { | ||
| 2047 | updating_frame = f; | ||
| 2048 | clear_frame (); | ||
| 2049 | updating_frame = NULL; | ||
| 2050 | } | ||
| 2038 | } | 2051 | } |
| 2039 | 2052 | ||
| 2040 | 2053 | ||