diff options
author | Anders Lindgren <andlind@gmail.com> | 2015-09-21 09:01:18 +0200 |
---|---|---|
committer | Martin Rudalics <rudalics@gmx.at> | 2015-09-21 09:01:18 +0200 |
commit | 18028318d8908d547d82e8e3159994c14bb47dce (patch) | |
tree | ccd2eccc0792163a46c85031cdb7a4cd350070d7 /src/nsterm.m | |
parent | 57d48c364cf24c9f99f3d03eb74d9d2a81f4ae31 (diff) | |
download | emacs-18028318d8908d547d82e8e3159994c14bb47dce.tar.gz |
Keep upper edge unchanged when changing size of NS frame (Bug#21415)
* src/nsterm.m (x_set_window_size): Keep upper frame edge unchanged
(Bug#21415).
Diffstat (limited to 'src/nsterm.m')
-rw-r--r-- | src/nsterm.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index 2806f31155d..14f2beb4489 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -1333,6 +1333,7 @@ x_set_window_size (struct frame *f, int tb = FRAME_EXTERNAL_TOOL_BAR (f); int pixelwidth, pixelheight; int rows, cols; + int orig_height = wr.size.height; NSTRACE (x_set_window_size); @@ -1386,7 +1387,7 @@ x_set_window_size (struct frame *f, if (f->output_data.ns->zooming) f->output_data.ns->zooming = 0; else - wr.origin.y += FRAME_PIXEL_HEIGHT (f) - pixelheight; + wr.origin.y += orig_height - wr.size.height; [view setRows: rows andColumns: cols]; [window setFrame: wr display: YES]; |