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

winemac: Actually switch Win32 focus away from a window that has lost Cocoa focus.

parent 220b8b79
......@@ -1587,7 +1587,11 @@ void macdrv_window_lost_focus(HWND hwnd, const macdrv_event *event)
TRACE("win %p/%p fg %p\n", hwnd, event->window, GetForegroundWindow());
if (hwnd == GetForegroundWindow())
{
SendMessageW(hwnd, WM_CANCELMODE, 0, 0);
if (hwnd == GetForegroundWindow())
SetForegroundWindow(GetDesktopWindow());
}
}
......
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