diff options
| author | Martin Rudalics | 2014-01-11 10:31:09 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2014-01-11 10:31:09 +0100 |
| commit | 7d7ccb8829db98eca38cd2bfb31132a7f1adc022 (patch) | |
| tree | a10aca13dd3d5c942f3eacf52942ef128433cb30 /src/window.c | |
| parent | bada50fc50d34e0e2ffd00fd64957cfb397c6eee (diff) | |
| download | emacs-7d7ccb8829db98eca38cd2bfb31132a7f1adc022.tar.gz emacs-7d7ccb8829db98eca38cd2bfb31132a7f1adc022.zip | |
Fix handling of internal borders (Bug#16348).
* dispnew.c (adjust_frame_glyphs_for_window_redisplay): Remove
internal border width from pixel width of windows.
(change_frame_size_1): Don't return early when frame's pixel
size changes - we still have to record the new sizes in the
frame structure.
* w32fns.c (x_set_tool_bar_lines): Clear internal border width
also when toolbar gets larger.
* window.c (check_frame_size): Include internal_border_width in
check.
* xdisp.c (Ftool_bar_height): Fix doc-string typo.
* xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines): In
non-toolkit/non-GTK version clear internal border.
* xterm.c (x_clear_under_internal_border): New function for
non-toolkit/non-GTK version.
(x_after_update_window_line): In non-toolkit/non-GTK version
don't do that.
(handle_one_xevent, x_set_window_size): Call
x_clear_under_internal_border in non-toolkit/non-GTK version.
* xterm.h (x_clear_under_internal_border): Extern it.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index f85627ac49f..bd319f5be8f 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -3155,6 +3155,7 @@ check_frame_size (struct frame *frame, int *width, int *height, bool pixelwise) | |||
| 3155 | min_height = 2 * min_height; | 3155 | min_height = 2 * min_height; |
| 3156 | 3156 | ||
| 3157 | min_height += FRAME_TOP_MARGIN_HEIGHT (frame); | 3157 | min_height += FRAME_TOP_MARGIN_HEIGHT (frame); |
| 3158 | min_height += FRAME_INTERNAL_BORDER_WIDTH (frame); | ||
| 3158 | 3159 | ||
| 3159 | if (*height < min_height) | 3160 | if (*height < min_height) |
| 3160 | *height = min_height; | 3161 | *height = min_height; |
| @@ -4047,6 +4048,8 @@ resize_frame_windows (struct frame *f, int size, bool horflag, bool pixelwise) | |||
| 4047 | have implicitly given us a zero or negative height. */ | 4048 | have implicitly given us a zero or negative height. */ |
| 4048 | if (pixelwise) | 4049 | if (pixelwise) |
| 4049 | { | 4050 | { |
| 4051 | /* Note: This does not include the size for internal borders | ||
| 4052 | since these are not part of the frame's text area. */ | ||
| 4050 | new_pixel_size = max (horflag | 4053 | new_pixel_size = max (horflag |
| 4051 | ? size | 4054 | ? size |
| 4052 | : (size | 4055 | : (size |