Revert "It's important to order out child windows before parent window relationship is broken."

This reverts commit c6553016d3.
This commit is contained in:
Ilya Kulakov committed 2013-04-26 17:57:00 +07:00
1 parent c6553016d3
commit 920204fc63
1 file changed
+3 -5
+3 -5
View File
@@ -957,13 +957,11 @@ CPTexturedBackgroundWindowMask
{
if (orderingMode === CPWindowOut)
{
// It's important to order out child window before cleaning up parent's child windows
// because its layer is determined from the parent's layer.
// In Cocoa, a window orders out its child windows only if it has no parent
[self _orderOutRecursively:!_parentWindow];
// Directly ordering out will detach a child window
[_parentWindow removeChildWindow:self];
// In Cocoa, a window orders out its child windows only if it has no parent
[self _orderOutRecursively:!_parentWindow];
}
else if (orderingMode === CPWindowAbove && otherWindowNumber === 0)
[self _orderFront];