Commit 2b97f8c1 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: When Cocoa brings a window forward, tell Wine even if it's disabled or no-activate.

We can't prevent Cocoa from bringing disabled/no-activate windows forward. So, we need to tell Wine about the z-order change. We still do avoid telling Wine to activate disabled/no-activate windows, though.
parent d6f527af
......@@ -1587,7 +1587,6 @@ int macdrv_err_on;
BOOL broughtWindowForward = FALSE;
if ([window isKindOfClass:[WineWindow class]] &&
!window.disabled && !window.noActivate &&
type == NSLeftMouseDown &&
(([theEvent modifierFlags] & (NSShiftKeyMask | NSControlKeyMask| NSAlternateKeyMask | NSCommandKeyMask)) != NSCommandKeyMask))
{
......@@ -1693,7 +1692,7 @@ int macdrv_err_on;
else if (broughtWindowForward)
{
[[window ancestorWineWindow] postBroughtForwardEvent];
if (![window isKeyWindow])
if (![window isKeyWindow] && !window.disabled && !window.noActivate)
[self windowGotFocus:window];
}
}
......
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