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