winemac: Reenable window autodisplay when the frame is set and redisplayed.

Cocoa will draw the window frame immediately but if autodisplay of its content
view is disabled, that may leave the content area black briefly.  This change
avoids that flicker.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Ken Thomases 2018-03-25 20:45:22 -05:00 committed by Alexandre Julliard
parent 1b04429965
commit 041f59350c
1 changed files with 14 additions and 0 deletions

View File

@ -2456,6 +2456,20 @@ - (void) displayIfNeeded
[self setAutodisplay:NO];
}
- (void) setFrame:(NSRect)frameRect display:(BOOL)flag
{
if (flag)
[self setAutodisplay:YES];
[super setFrame:frameRect display:flag];
}
- (void) setFrame:(NSRect)frameRect display:(BOOL)displayFlag animate:(BOOL)animateFlag
{
if (displayFlag)
[self setAutodisplay:YES];
[super setFrame:frameRect display:displayFlag animate:animateFlag];
}
- (void) windowDidDrawContent
{
if (!drawnSinceShown)