Revert "Fix child windows may reside on other layers than parent."

This reverts commit 8e4f1fdd10.
This commit is contained in:
Ilya Kulakov
2013-04-26 17:57:18 +07:00
parent 920204fc63
commit d3a4ce4608
+1 -2
View File
@@ -1413,8 +1413,7 @@ var resizeTimer = nil;
// Grab the appropriate level for the layer, and create it if
// necessary (if we are not simply removing the window).
var layer = [self layerAtLevel:[[self _furthestParentOf:aWindow] level]
create:orderingMode !== CPWindowOut];
var layer = [self layerAtLevel:[aWindow level] create:orderingMode !== CPWindowOut];
// When ordering out, ignore otherWindow, simply remove aWindow from its level.
// If layer is nil, this will be a no-op.