aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c
index 731a62705bd..e68a3db24ea 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -2584,8 +2584,9 @@ FRAME should be HEIGHT pixels high. */)
2584 { 2584 {
2585 if (NILP (pixelwise)) 2585 if (NILP (pixelwise))
2586 { 2586 {
2587 if (XINT (height) != FRAME_LINES (f)) 2587 if (FRAME_LINES (f) - FRAME_TOP_MARGIN (f) != XINT (height))
2588 x_set_window_size (f, 1, FRAME_COLS (f), XINT (height), 0); 2588 x_set_window_size (f, 1, FRAME_COLS (f),
2589 XINT (height) + FRAME_TOP_MARGIN (f), 0);
2589 2590
2590 do_pending_window_change (0); 2591 do_pending_window_change (0);
2591 } 2592 }