Commit 4e9c3444 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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: 's avatarKen Thomases <ken@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent fd6f2a17
......@@ -2427,6 +2427,8 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
_lastDisplayTime = now;
}
}
else
[self setAutodisplay:YES];
}
[super setViewsNeedDisplay:value];
}
......@@ -2435,14 +2437,16 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
{
_lastDisplayTime = [[NSProcessInfo processInfo] systemUptime];
[super display];
[self setAutodisplay:NO];
if (_lastDisplayID)
[self setAutodisplay:NO];
}
- (void) displayIfNeeded
{
_lastDisplayTime = [[NSProcessInfo processInfo] systemUptime];
[super displayIfNeeded];
[self setAutodisplay:NO];
if (_lastDisplayID)
[self setAutodisplay:NO];
}
- (void) windowDidDrawContent
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment