winemac.drv: Activate window when restoring from iconic state.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhiyi Zhang 2019-06-05 17:05:05 +08:00 committed by Alexandre Julliard
parent 82c6ec3a32
commit 019f9222a6
1 changed files with 1 additions and 0 deletions

View File

@ -2452,6 +2452,7 @@ void macdrv_window_did_unminimize(HWND hwnd)
{
TRACE("restoring win %p/%p\n", hwnd, data->cocoa_window);
release_win_data(data);
SetActiveWindow(hwnd);
SendMessageW(hwnd, WM_SYSCOMMAND, SC_RESTORE, 0);
return;
}