winemac: Don't bring a window onto the screen in SetFocus().

This commit is contained in:
Ken Thomases 2013-02-18 21:50:24 -06:00 committed by Alexandre Julliard
parent 1561fa4126
commit 6cfa0a31d8
1 changed files with 1 additions and 2 deletions

View File

@ -852,11 +852,10 @@ void CDECL macdrv_SetFocus(HWND hwnd)
if (!(hwnd = GetAncestor(hwnd, GA_ROOT))) return;
if (!(data = get_win_data(hwnd))) return;
if (data->cocoa_window)
if (data->cocoa_window && data->on_screen)
{
/* Set Mac focus */
macdrv_give_cocoa_window_focus(data->cocoa_window);
data->on_screen = TRUE;
}
release_win_data(data);