aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2011-09-30 09:42:26 +0200
committerJan Djärv2011-09-30 09:42:26 +0200
commit9ceebf39d984e4415dbb9ae62e883902051257c8 (patch)
tree8c10efafd65257cb2b1a192a0db6b6540788eb66 /src
parent04c7078847acf841ee45c24007ef9615db57e595 (diff)
downloademacs-9ceebf39d984e4415dbb9ae62e883902051257c8.tar.gz
emacs-9ceebf39d984e4415dbb9ae62e883902051257c8.zip
* nsterm.m (windowDidResize): Call x_set_window_size only when
ns_in_resize is true. Otherwise set pixelwidth/height and call change_frame_size. Fixes: debbugs:9628
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/nsterm.m18
2 files changed, 23 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index b8b4d54b4f7..37d2de93c11 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12011-09-30 Jan Djärv <jan.h.d@swipnet.se>
2
3 * nsterm.m (windowDidResize): Call x_set_window_size only when
4 ns_in_resize is true. Otherwise set pixelwidth/height and
5 call change_frame_size (Bug#9628).
6
12011-09-30 Paul Eggert <eggert@cs.ucla.edu> 72011-09-30 Paul Eggert <eggert@cs.ucla.edu>
2 8
3 Port --enable-checking=all to Fedora 14 x86-64. 9 Port --enable-checking=all to Fedora 14 x86-64.
diff --git a/src/nsterm.m b/src/nsterm.m
index 827404a2974..a2ae5e69512 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -5357,7 +5357,23 @@ ns_term_shutdown (int sig)
5357 a "windowDidResize" which calls x_set_window_size). */ 5357 a "windowDidResize" which calls x_set_window_size). */
5358#ifndef NS_IMPL_GNUSTEP 5358#ifndef NS_IMPL_GNUSTEP
5359 if (cols > 0 && rows > 0) 5359 if (cols > 0 && rows > 0)
5360 x_set_window_size (emacsframe, 0, cols, rows); 5360 {
5361 if (ns_in_resize)
5362 x_set_window_size (emacsframe, 0, cols, rows);
5363 else
5364 {
5365 NSWindow *window = [self window];
5366 NSRect wr = [window frame];
5367 FRAME_PIXEL_WIDTH (emacsframe) = (int)wr.size.width
5368 - emacsframe->border_width;
5369 FRAME_PIXEL_HEIGHT (emacsframe) = (int)wr.size.height
5370 - FRAME_NS_TITLEBAR_HEIGHT (emacsframe)
5371 - FRAME_TOOLBAR_HEIGHT (emacsframe);
5372 change_frame_size (emacsframe, rows, cols, 0, 0, 1);
5373 SET_FRAME_GARBAGED (emacsframe);
5374 cancel_mouse_face (emacsframe);
5375 }
5376 }
5361#endif 5377#endif
5362 5378
5363 ns_send_appdefined (-1); 5379 ns_send_appdefined (-1);