winemac: Tell Wine when Cocoa brought a clicked window forward even if it sent the click event.

Not sending the brought-forward event for a click that was sent was an artifact
of a time when that branch was only used for posting a request for focus.  When
I added the brought-forward event, I didn't reconsider that logic.
This commit is contained in:
Ken Thomases 2015-08-12 18:02:32 -05:00 committed by Alexandre Julliard
parent 27bf278d72
commit 793ab7d457
1 changed files with 2 additions and 2 deletions

View File

@ -1700,10 +1700,10 @@ - (void) handleMouseButton:(NSEvent*)theEvent
}
}
if (!process && windowBroughtForward)
if (windowBroughtForward)
{
[[windowBroughtForward ancestorWineWindow] postBroughtForwardEvent];
if (![windowBroughtForward isKeyWindow] && !windowBroughtForward.disabled && !windowBroughtForward.noActivate)
if (!process && ![windowBroughtForward isKeyWindow] && !windowBroughtForward.disabled && !windowBroughtForward.noActivate)
[self windowGotFocus:windowBroughtForward];
}