Rémi Bernon (@rbernon) commented about dlls/win32u/message.c:
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 );
As we're about to restore the window on the Win32 side to match the host side the idea was to make sure that we will do so while keeping the config the window manager has decided the window to be in. Otherwise it'll make the Win32 side disagree, and either end up with both out of sync or cause another round-trip of window reconfiguration right after restore, which I believe was racing with extra window re-configuration from the WM that could be pending after restoration (see https://bugs.winehq.org/show_bug.cgi?id=58804). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10725#note_137426