Commit ffc02008 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

winemac.drv: Show the window after setting layered attributes.

Show the window after setting layered attributes in macdrv_UpdateLayeredWindow(). This corresponds to a22dd45a for winex11.drv. Fix a regression from 8892b791, which called set_window_pos() before calling USER_Driver->pUpdateLayeredWindow(). Fix Active Trader Pro doesn't show splash screen at startup on macOS. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51984
parent 9786ee25
......@@ -1930,6 +1930,11 @@ BOOL macdrv_UpdateLayeredWindow(HWND hwnd, const UPDATELAYEREDWINDOWINFO *info,
else set_surface_use_alpha(surface, TRUE);
if (surface) window_surface_add_ref(surface);
/* Since layered attributes are now set, can now show the window */
if (data->cocoa_window && !data->on_screen && NtUserGetWindowLongW(hwnd, GWL_STYLE) & WS_VISIBLE)
show_window(data);
release_win_data(data);
if (!surface) return FALSE;
......
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