winemac: When a window becomes ineligible to be a parent, make the relationship latent in its children, too.
This commit is contained in:
parent
029bcf97dd
commit
a68d0a24ef
|
@ -712,11 +712,23 @@ - (BOOL) becameEligibleParentOrChild
|
|||
- (void) becameIneligibleParentOrChild
|
||||
{
|
||||
WineWindow* parent = (WineWindow*)[self parentWindow];
|
||||
NSArray* childWindows = [self childWindows];
|
||||
|
||||
if (parent)
|
||||
{
|
||||
self.latentParentWindow = parent;
|
||||
[parent removeChildWindow:self];
|
||||
}
|
||||
|
||||
if ([childWindows count])
|
||||
{
|
||||
WineWindow* child;
|
||||
for (child in [[childWindows copy] autorelease])
|
||||
{
|
||||
child.latentParentWindow = self;
|
||||
[self removeChildWindow:child];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Determine if, among Wine windows, this window is directly above or below
|
||||
|
|
Loading…
Reference in New Issue