June 9, 2026
7:17 a.m.
Rémi Bernon (@rbernon) commented about dlls/win32u/input.c:
if (is_window(hwnd)) { - send_message( hwnd, WM_NCACTIVATE, hwnd == NtUserGetForegroundWindow(), (LPARAM)previous ); + HWND foreground = NtUserGetForegroundWindow(); + send_message( hwnd, WM_NCACTIVATE, !foreground || hwnd == foreground, (LPARAM)previous );
I don't think it should be possible for a window to become active while there's no foreground window. Foreground window should change at the same time as the window gets active, or it shouldn't activate in the first place. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11074#note_142485