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:
parent
fd6f2a1781
commit
4e9c3444fb
|
@ -2427,6 +2427,8 @@ - (void) setViewsNeedDisplay:(BOOL)value
|
|||
_lastDisplayTime = now;
|
||||
}
|
||||
}
|
||||
else
|
||||
[self setAutodisplay:YES];
|
||||
}
|
||||
[super setViewsNeedDisplay:value];
|
||||
}
|
||||
|
@ -2435,6 +2437,7 @@ - (void) display
|
|||
{
|
||||
_lastDisplayTime = [[NSProcessInfo processInfo] systemUptime];
|
||||
[super display];
|
||||
if (_lastDisplayID)
|
||||
[self setAutodisplay:NO];
|
||||
}
|
||||
|
||||
|
@ -2442,6 +2445,7 @@ - (void) displayIfNeeded
|
|||
{
|
||||
_lastDisplayTime = [[NSProcessInfo processInfo] systemUptime];
|
||||
[super displayIfNeeded];
|
||||
if (_lastDisplayID)
|
||||
[self setAutodisplay:NO];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue