winemac: Actually switch Win32 focus away from a window that has lost Cocoa focus.
This commit is contained in:
parent
220b8b7946
commit
e635952459
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue