Commit a68d0a24 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: When a window becomes ineligible to be a parent, make the relationship…

winemac: When a window becomes ineligible to be a parent, make the relationship latent in its children, too.
parent 029bcf97
......@@ -712,11 +712,23 @@ static inline void fix_generic_modifiers_by_device(NSUInteger* modifiers)
- (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
......
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