diff options
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 |