diff options
| author | Gerd Moellmann | 2000-11-22 14:27:38 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-11-22 14:27:38 +0000 |
| commit | b6f91066605cb485be14b61e4cd8dc19faa58184 (patch) | |
| tree | 78d459176392f66543f9eecd73378c8804d2e217 | |
| parent | e2ecbd430c4645700be8064f67c9993a5a018259 (diff) | |
| download | emacs-b6f91066605cb485be14b61e4cd8dc19faa58184.tar.gz emacs-b6f91066605cb485be14b61e4cd8dc19faa58184.zip | |
(x_set_tool_bar_lines): Clear internal border when
tool bar gets smaller.
| -rw-r--r-- | src/xfns.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c index 5132cd17df5..7210678952d 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -2045,6 +2045,21 @@ x_set_tool_bar_lines (f, value, oldval) | |||
| 2045 | clear_current_matrices (f); | 2045 | clear_current_matrices (f); |
| 2046 | updating_frame = NULL; | 2046 | updating_frame = NULL; |
| 2047 | } | 2047 | } |
| 2048 | |||
| 2049 | /* If the tool bar gets smaller, the internal border below it | ||
| 2050 | has to be cleared. It was formerly part of the display | ||
| 2051 | of the larger tool bar, and updating windows won't clear it. */ | ||
| 2052 | if (delta < 0) | ||
| 2053 | { | ||
| 2054 | int height = FRAME_INTERNAL_BORDER_WIDTH (f); | ||
| 2055 | int width = PIXEL_WIDTH (f); | ||
| 2056 | int y = nlines * CANON_Y_UNIT (f); | ||
| 2057 | |||
| 2058 | BLOCK_INPUT; | ||
| 2059 | XClearArea (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), | ||
| 2060 | 0, y, width, height, False); | ||
| 2061 | UNBLOCK_INPUT; | ||
| 2062 | } | ||
| 2048 | } | 2063 | } |
| 2049 | 2064 | ||
| 2050 | 2065 | ||