Commit d6574111 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Check the window's display link after adding it as a child of another…

winemac: Check the window's display link after adding it as a child of another window, which may order it on screen. This fixes a problem where child windows ("owned" windows in Windows parlance) would never display their contents on OS X 10.8 or earlier. Beginning with 10.9, Cocoa calls -windowDidChangeOcclusionState: when the window becomes visible, which is why they display on that version and later. Reported by Huw Davies. Signed-off-by: 's avatarKen Thomases <ken@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent fab05936
......@@ -1041,6 +1041,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
if ([self level] > [child level])
[child setLevel:[self level]];
[self addChildWindow:child ordered:NSWindowAbove];
[child checkWineDisplayLink];
[latentChildWindows removeObjectIdenticalTo:child];
child.latentParentWindow = nil;
reordered = TRUE;
......
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