From: Zhiyi Zhang zzhang@codeweavers.com
Show the window after setting layered attributes in macdrv_UpdateLayeredWindow(). This corresponds to a22dd45 for winex11.drv. Fix a regression from 8892b79, 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 --- dlls/winemac.drv/window.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c index 67f45d301df..a04ff5fd4c9 100644 --- a/dlls/winemac.drv/window.c +++ b/dlls/winemac.drv/window.c @@ -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;