Commit 9fbc364e authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Remove an unnecessary call to -[NSView removeFromSuperview].

It's only obliquely documented, but -[NSView addSubview:positioned:relativeTo:] will remove the view from its old superview if it's changing superviews. If it's just changing z-order within its current superview, it won't. This avoids some flicker of OpenGL surfaces being removed and re-added. Signed-off-by: 's avatarKen Thomases <ken@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 102cd6dc
......@@ -3354,7 +3354,6 @@ void macdrv_set_view_superview(macdrv_view v, macdrv_view s, macdrv_window w, ma
WineWindow* oldWindow = (WineWindow*)[view window];
WineWindow* newWindow = (WineWindow*)[superview window];
[view removeFromSuperview];
if (prev)
[superview addSubview:view positioned:NSWindowBelow relativeTo:prev];
else
......
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