Skip to content
Snippets Groups Projects
Commit aee52e0a authored by George Nachman's avatar George Nachman
Browse files

If a window has a nil screen, it would get resized to 0x0. Just accept the...

If a window has a nil screen, it would get resized to 0x0. Just accept the proposed size in this case. Issue 5641
parent f63e53c4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -3038,9 +3038,10 @@ ITERM_WEAKLY_REFERENCEABLE
}
 
- (NSSize)windowWillResize:(NSWindow *)sender toSize:(NSSize)proposedFrameSize {
PtyLog(@"%s(%d):-[PseudoTerminal windowWillResize: obj=%p, proposedFrameSize width = %f; height = %f]",
__FILE__, __LINE__, [self window], proposedFrameSize.width, proposedFrameSize.height);
if (self.togglingLionFullScreen || self.lionFullScreen) {
DLog(@"windowWillResize: self=%@, proposedFrameSize=%@ screen=%@",
self, NSStringFromSize(proposedFrameSize), self.window.screen);
if (self.togglingLionFullScreen || self.lionFullScreen || self.window.screen == nil) {
DLog(@"Accepting proposal");
return proposedFrameSize;
}
NSSize originalProposal = proposedFrameSize;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment