emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r109943: * nsterm.m (updateFrameSize)


From: Jan D.
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109943: * nsterm.m (updateFrameSize): Call setFrame: on the view when size
Date: Sat, 08 Sep 2012 19:22:15 +0200
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109943
fixes bug: http://debbugs.gnu.org/12088
committer: Jan D. <address@hidden>
branch nick: trunk
timestamp: Sat 2012-09-08 19:22:15 +0200
message:
  * nsterm.m (updateFrameSize): Call setFrame: on the view when size
  changes.
modified:
  src/ChangeLog
  src/nsterm.m
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-09-08 14:23:01 +0000
+++ b/src/ChangeLog     2012-09-08 17:22:15 +0000
@@ -1,3 +1,8 @@
+2012-09-08  Jan Djärv  <address@hidden>
+
+       * nsterm.m (updateFrameSize): Call setFrame: on the view when size
+       changes (Bug#12088).
+
 2012-09-08  Chong Yidong  <address@hidden>
 
        * syntax.c (Fstring_to_syntax): Doc fix.

=== modified file 'src/nsterm.m'
--- a/src/nsterm.m      2012-09-08 12:48:33 +0000
+++ b/src/nsterm.m      2012-09-08 17:22:15 +0000
@@ -5374,11 +5374,13 @@
 
   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)];
     }
 }
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]