winemac: Check the window's display link after adding it as a child of another window...
commitd6574111c20d130a40c09ce0762ceb0a5461ada0
authorKen Thomases <ken@codeweavers.com>
Tue, 10 Nov 2015 02:31:21 +0000 (9 20:31 -0600)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 10 Nov 2015 02:58:36 +0000 (10 11:58 +0900)
tree40de0a635e43f2a1f6ac310e339b0864aca6c0a0
parentfab05936921661e6b99589ce4010cd1bc61216da
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: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winemac.drv/cocoa_window.m