]> code.delx.au - gnu-emacs/commitdiff
NS: Fix frame size when height and font set at startup.
authorJan D <jan.h.d@swipnet.se>
Tue, 6 Jan 2015 19:30:39 +0000 (20:30 +0100)
committerJan D <jan.h.d@swipnet.se>
Tue, 6 Jan 2015 19:30:39 +0000 (20:30 +0100)
* nsterm.m (x_set_window_size): Call updateFrameSize to get real
size instead of using widht/height.  The frame may be constrained.

src/ChangeLog
src/nsterm.m

index 69da1c35c9106975af65e991c63231b86ddd38de..861ba91c275fe71400b8e6fbf7bb3bd451187718 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-06  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsterm.m (x_set_window_size): Call updateFrameSize to get real
+       size instead of using widht/height.  The frame may be constrained.
+
 2015-01-05  Paul Eggert  <eggert@cs.ucla.edu>
 
        * lisp.h (XSYMBOL): Parenthesize id in forward decl.
index 2ccb7fe0c6014f4710be62bb90056e78b9eb5fcb..bf3192bf43232fe679d17ce05890591938209610 100644 (file)
@@ -1404,15 +1404,8 @@ x_set_window_size (struct frame *f,
     [view setBoundsOrigin: origin];
   }
 
-  change_frame_size (f, width, height, 0, 1, 0, pixelwise);
-/*  SET_FRAME_GARBAGED (f); // this short-circuits expose call in drawRect */
-
-  mark_window_cursors_off (XWINDOW (f->root_window));
-  cancel_mouse_face (f);
-
+  [view updateFrameSize: NO];
   unblock_input ();
-
-  do_pending_window_change (0);
 }