winemac: Fix z-ordering between two child (owned) windows of the same parent (owner).
The window being ordered was first put in the correct place and then was moved to the other end of the children list by the loop that was intended to adjust the windows strictly between the window and the ancestor. Signed-off-by: Ken Thomases <ken@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2bebfa2fc5
commit
64704bef18
|
@ -1590,6 +1590,8 @@ - (void) orderBelow:(WineWindow*)prev orAbove:(WineWindow*)next activate:(BOOL)a
|
|||
[ancestor orderWindow:orderingMode relativeTo:[ancestorOfOther windowNumber]];
|
||||
}
|
||||
|
||||
if (!ancestorOfOther || ancestor != self)
|
||||
{
|
||||
for (child = self;
|
||||
(parent = (WineWindow*)child.parentWindow);
|
||||
child = parent)
|
||||
|
@ -1599,6 +1601,7 @@ - (void) orderBelow:(WineWindow*)prev orAbove:(WineWindow*)next activate:(BOOL)a
|
|||
if (parent == ancestor)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
[self checkWineDisplayLink];
|
||||
needAdjustWindowLevels = TRUE;
|
||||
|
|
Loading…
Reference in New Issue