From: Zhiyi Zhang <zzhang@codeweavers.com> There are many cases in window_update_client_config() that return 0. In those cases, we shouldn't change the window config. Fix a regression from be60f77909fc9ce2c9b6f1abd005e3b4aabaafec. Fix Homeworld Remastered Collection (244160) Homeworld 2 Classic black screen after restoring from the minimized state in fullscreen mode due to an unexpected window size. --- dlls/win32u/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/win32u/message.c b/dlls/win32u/message.c index 43c2855eff4..3e7a2623f71 100644 --- a/dlls/win32u/message.c +++ b/dlls/win32u/message.c @@ -2243,7 +2243,7 @@ static LRESULT handle_internal_message( HWND hwnd, UINT msg, WPARAM wparam, LPAR window_rect = map_rect_raw_to_virt( window_rect, get_thread_dpi() ); } - NtUserSetInternalWindowPos( hwnd, SW_SHOW, &window_rect, NULL ); + if (swp_flags) NtUserSetInternalWindowPos( hwnd, SW_SHOW, &window_rect, NULL ); /* fallthrough */ default: send_message( hwnd, WM_SYSCOMMAND, LOWORD(state_cmd), 0 ); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10725