Module: wine Branch: master Commit: 6b1becc3e0731357f81963c7630fbb2cf1ab2bfd URL: https://gitlab.winehq.org/wine/wine/-/commit/6b1becc3e0731357f81963c7630fbb2... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Mon Jun 17 10:31:15 2024 +0200 win32u: Avoid setting the SWP_NOSIZE flag on the initial WM_DISPLAYCHANGE. By initializing the desktop window proc virtual rect cache. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56841 --- dlls/win32u/defwnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/win32u/defwnd.c b/dlls/win32u/defwnd.c index f549f922fd7..003ba7c0846 100644 --- a/dlls/win32u/defwnd.c +++ b/dlls/win32u/defwnd.c @@ -2977,7 +2977,7 @@ LRESULT desktop_window_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) return 0; case WM_DISPLAYCHANGE: { - static RECT virtual_rect; + static RECT virtual_rect = {INT_MIN,INT_MIN,INT_MAX,INT_MAX}; RECT new_rect = NtUserGetVirtualScreenRect(), old_rect = virtual_rect; UINT context, flags = 0;