From: Jan Djärv Date: Sat, 8 Sep 2012 17:22:15 +0000 (+0200) Subject: * nsterm.m (updateFrameSize): Call setFrame: on the view when size X-Git-Url: http://git.hcoop.net/bpt/emacs.git/commitdiff_plain/0b3b1d23224845e760ad7ef6e316cbac05f54093 * nsterm.m (updateFrameSize): Call setFrame: on the view when size changes. Fixes: debbugs:12088 --- diff --git a/src/ChangeLog b/src/ChangeLog index ec6e39ad0b..dd4719e25c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2012-09-08 Jan Djärv + + * nsterm.m (updateFrameSize): Call setFrame: on the view when size + changes (Bug#12088). + 2012-09-08 Chong Yidong * syntax.c (Fstring_to_syntax): Doc fix. diff --git a/src/nsterm.m b/src/nsterm.m index 73372238cf..583db79b90 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -5374,11 +5374,13 @@ not_in_argv (NSString *arg) if (oldr != rows || oldc != cols || neww != oldw || newh != oldh) { + NSView *view = FRAME_NS_VIEW (emacsframe); FRAME_PIXEL_WIDTH (emacsframe) = neww; FRAME_PIXEL_HEIGHT (emacsframe) = newh; change_frame_size (emacsframe, rows, cols, 0, 0, 1); SET_FRAME_GARBAGED (emacsframe); cancel_mouse_face (emacsframe); + [view setFrame: NSMakeRect (0, 0, neww, newh)]; } }