mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-22 14:35:52 +00:00
Revert "It's important to order out child windows before parent window relationship is broken."
This reverts commit c6553016d3.
This commit is contained in:
1 parent
c6553016d3
commit
920204fc63
1 file changed
+3
-5
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user