+2012-09-11 Jan Djärv <jan.h.d@swipnet.se>
+
+ * nsterm.m (ns_judge_scroll_bars): Pass NO to updateFrameSize.
+ (updateFrameSize:): Add delay parameter to updateFrameSize, send it
+ to change_frame_size (Bug#12388).
+ (windowDidResize:): Pass YES to updateFrameSize.
+
+ * nsterm.h: Add delay parameter to updateFrameSize.
+
2012-09-11 Dmitry Antipov <dmantipov@yandex.ru>
Discard killed buffers from deleted window and frame objects.
- (void) setWindowClosing: (BOOL)closing;
- (EmacsToolbar *) toolbar;
- (void) deleteWorkingText;
-- (void) updateFrameSize;
+- (void) updateFrameSize: (BOOL) delay;
#ifdef NS_IMPL_GNUSTEP
/* Not declared, but useful. */
}
if (removed)
- [eview updateFrameSize];
+ [eview updateFrameSize: NO];
}
return NO;
}
-- (void) updateFrameSize
+- (void) updateFrameSize: (BOOL) delay;
{
NSWindow *window = [self window];
NSRect wr = [window frame];
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);
+ change_frame_size (emacsframe, rows, cols, 0, delay, 0);
SET_FRAME_GARBAGED (emacsframe);
cancel_mouse_face (emacsframe);
[view setFrame: NSMakeRect (0, 0, neww, newh)];
x_set_window_size (emacsframe, 0, cols, rows);
else
{
- [self updateFrameSize];
+ [self updateFrameSize: YES];
}
}
#endif