Commit 6873c3ee authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Make -setMacDrvParentWindow: do nothing if new parent is same as latent parent.

parent 4b2f4eb6
......@@ -949,7 +949,8 @@ static inline void fix_generic_modifiers_by_device(NSUInteger* modifiers)
- (void) setMacDrvParentWindow:(WineWindow*)parent
{
if ([self parentWindow] != parent)
WineWindow* oldParent = (WineWindow*)[self parentWindow];
if ((oldParent && oldParent != parent) || (!oldParent && latentParentWindow != parent))
{
[[self parentWindow] removeChildWindow:self];
self.latentParentWindow = nil;
......
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