winemac: Call -removeFromSuperview on a view before adding it to a superview, on...
commit887db3403e53a422ff6c0817b3aa6466ec3ab604
authorKen Thomases <ken@codeweavers.com>
Fri, 22 Jul 2016 06:25:06 +0000 (22 01:25 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 22 Jul 2016 06:31:58 +0000 (22 15:31 +0900)
treef2cc7b227da38c69a7b6ce0fc9bb7dfda3dc2f21
parentb1861cb86c38114ab15330b75555ae4c1b78c66d
winemac: Call -removeFromSuperview on a view before adding it to a superview, on 10.9 and earlier.

This works around a Cocoa bug that causes an exception and hang if the view is
being re-ordered within its current superview (as opposed to being moved to a
new superview).

This reverts commit 9fbc364ea103239553701aa9a9932e3fdabcfff6 but adds some
conditions around the call to avoid the flicker on platforms where it's
unnecessary.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winemac.drv/cocoa_window.m