winemac: Don't set Cocoa window frame to be zero-sized.
This commit is contained in:
parent
47352930d8
commit
d74e90080a
|
@ -429,14 +429,17 @@ - (BOOL) setFrameIfOnScreen:(NSRect)contentRect
|
|||
[self doOrderOut];
|
||||
}
|
||||
|
||||
oldFrame = [self frame];
|
||||
frame = [self frameRectForContentRect:contentRect];
|
||||
if (!NSEqualRects(frame, oldFrame))
|
||||
if (!NSIsEmptyRect(contentRect))
|
||||
{
|
||||
if (NSEqualSizes(frame.size, oldFrame.size))
|
||||
[self setFrameOrigin:frame.origin];
|
||||
else
|
||||
[self setFrame:frame display:YES];
|
||||
oldFrame = [self frame];
|
||||
frame = [self frameRectForContentRect:contentRect];
|
||||
if (!NSEqualRects(frame, oldFrame))
|
||||
{
|
||||
if (NSEqualSizes(frame.size, oldFrame.size))
|
||||
[self setFrameOrigin:frame.origin];
|
||||
else
|
||||
[self setFrame:frame display:YES];
|
||||
}
|
||||
}
|
||||
|
||||
if (on_screen)
|
||||
|
|
Loading…
Reference in New Issue