aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Rudalics2014-07-28 19:03:23 +0200
committerMartin Rudalics2014-07-28 19:03:23 +0200
commit5dc4b8ca3d925213465ae5440ff48fcd999ccc3a (patch)
tree5e6779d0c02dbf5ead175217473dff0f890d8814 /src
parent2daa203c3eb983433b86b841bf31d3e91bb51ab4 (diff)
downloademacs-5dc4b8ca3d925213465ae5440ff48fcd999ccc3a.tar.gz
emacs-5dc4b8ca3d925213465ae5440ff48fcd999ccc3a.zip
Fix some issues with setting the frame height.
* frame.c (x_set_frame_parameters): Revert part of 2014-07-24 change that added the top margin height to the requested height and revert (undocumented) part of 2014-07-28 change that changed the logic of whether a size change occurred.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/frame.c11
2 files changed, 12 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0c79309609f..6f864d23332 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12014-07-28 Martin Rudalics <rudalics@gmx.at>
2
3 * frame.c (x_set_frame_parameters): Revert part of 2014-07-24
4 change that added the top margin height to the requested height
5 and revert (undocumented) part of 2014-07-28 change that changed
6 the logic of whether a size change occurred.
7
12014-07-28 Eli Zaretskii <eliz@gnu.org> 82014-07-28 Eli Zaretskii <eliz@gnu.org>
2 9
3 * .gdbinit (xwindow): The members total_cols, total_lines, 10 * .gdbinit (xwindow): The members total_cols, total_lines,
diff --git a/src/frame.c b/src/frame.c
index cc0d77e54c8..a911e71e822 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -3116,9 +3116,7 @@ x_set_frame_parameters (struct frame *f, Lisp_Object alist)
3116 else if (EQ (prop, Qheight) && RANGED_INTEGERP (0, val, INT_MAX)) 3116 else if (EQ (prop, Qheight) && RANGED_INTEGERP (0, val, INT_MAX))
3117 { 3117 {
3118 height_change = 1; 3118 height_change = 1;
3119 /* Add menu and tool bar lines to correctly resize F pixelwise. */ 3119 height = XFASTINT (val) * FRAME_LINE_HEIGHT (f);
3120 height
3121 = (XFASTINT (val) + FRAME_TOP_MARGIN (f)) * FRAME_LINE_HEIGHT (f);
3122 } 3120 }
3123 else if (EQ (prop, Qtop)) 3121 else if (EQ (prop, Qtop))
3124 top = val; 3122 top = val;
@@ -3200,9 +3198,10 @@ x_set_frame_parameters (struct frame *f, Lisp_Object alist)
3200 3198
3201 XSETFRAME (frame, f); 3199 XSETFRAME (frame, f);
3202 3200
3203 if (((width_change && width != FRAME_TEXT_WIDTH (f)) 3201 if ((width_change || height_change)
3204 || (height_change && height != FRAME_TEXT_HEIGHT (f))) 3202 && (width != FRAME_TEXT_WIDTH (f)
3205 && (f->new_height || f->new_width)) 3203 || height != FRAME_TEXT_HEIGHT (f)
3204 || f->new_height || f->new_width))
3206 { 3205 {
3207 /* If necessary provide default values for HEIGHT and WIDTH. Do 3206 /* If necessary provide default values for HEIGHT and WIDTH. Do
3208 that here since otherwise a size change implied by an 3207 that here since otherwise a size change implied by an