winemac: Leave a window in auto-display mode when it doesn't yet have a display link.

This fixes an issue where some windows (on some systems) would never display
their content area.  If they had a title bar, they'd just display that and
nothing else.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Ken Thomases 2017-12-08 02:54:07 -06:00 committed by Alexandre Julliard
parent fd6f2a1781
commit 4e9c3444fb
1 changed files with 6 additions and 2 deletions

View File

@ -2427,6 +2427,8 @@ - (void) setViewsNeedDisplay:(BOOL)value
_lastDisplayTime = now; _lastDisplayTime = now;
} }
} }
else
[self setAutodisplay:YES];
} }
[super setViewsNeedDisplay:value]; [super setViewsNeedDisplay:value];
} }
@ -2435,14 +2437,16 @@ - (void) display
{ {
_lastDisplayTime = [[NSProcessInfo processInfo] systemUptime]; _lastDisplayTime = [[NSProcessInfo processInfo] systemUptime];
[super display]; [super display];
[self setAutodisplay:NO]; if (_lastDisplayID)
[self setAutodisplay:NO];
} }
- (void) displayIfNeeded - (void) displayIfNeeded
{ {
_lastDisplayTime = [[NSProcessInfo processInfo] systemUptime]; _lastDisplayTime = [[NSProcessInfo processInfo] systemUptime];
[super displayIfNeeded]; [super displayIfNeeded];
[self setAutodisplay:NO]; if (_lastDisplayID)
[self setAutodisplay:NO];
} }
- (void) windowDidDrawContent - (void) windowDidDrawContent