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
This commit is contained in:
Rémi Bernon 2024-06-17 10:31:15 +02:00 committed by Alexandre Julliard
parent 1e701a6b37
commit 6b1becc3e0

View file

@ -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;