Commit 6cfa0a31 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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

parent 1561fa41
......@@ -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);
......
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