Found while doing tests for https://gitlab.winehq.org/wine/wine/-/merge_requests/9398, although it seems that we wont be able to write proper tests because of fvwm limitations with minimized windows.
From: Rémi Bernon rbernon@codeweavers.com
--- dlls/win32u/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/win32u/input.c b/dlls/win32u/input.c index 084ee561f30..f431ab98a9f 100644 --- a/dlls/win32u/input.c +++ b/dlls/win32u/input.c @@ -2010,7 +2010,7 @@ BOOL set_active_window( HWND hwnd, HWND *prev, BOOL mouse, BOOL focus, DWORD new { send_message( previous, WM_NCACTIVATE, FALSE, (LPARAM)hwnd ); send_message( previous, WM_ACTIVATE, - MAKEWPARAM( WA_INACTIVE, is_iconic(previous) ), (LPARAM)hwnd ); + MAKEWPARAM( WA_INACTIVE, is_iconic(previous) ? 0x20 : 0 ), (LPARAM)hwnd ); }
SERVER_START_REQ( set_active_window ) @@ -2069,7 +2069,7 @@ BOOL set_active_window( HWND hwnd, HWND *prev, BOOL mouse, BOOL focus, DWORD new { send_message( hwnd, WM_NCACTIVATE, hwnd == NtUserGetForegroundWindow(), (LPARAM)previous ); send_message( hwnd, WM_ACTIVATE, - MAKEWPARAM( mouse ? WA_CLICKACTIVE : WA_ACTIVE, is_iconic(hwnd) ), + MAKEWPARAM( mouse ? WA_CLICKACTIVE : WA_ACTIVE, is_iconic(hwnd) ? 0x20 : 0 ), (LPARAM)previous ); if (NtUserGetAncestor( hwnd, GA_PARENT ) == get_desktop_window()) NtUserPostMessage( get_desktop_window(), WM_PARENTNOTIFY, WM_NCACTIVATE, (LPARAM)hwnd );