[PATCH 0/1] MR5859: 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 -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5859
From: Rémi Bernon <rbernon(a)codeweavers.com> 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; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/5859
participants (1)
-
Rémi Bernon