d56f36c1
by Zhiyi Zhang at 2026-04-20T20:38:44+02:00
Revert "win32u: Don't forcefully activate windows before restoring them.".
This reverts commit f82b115dfcf3eefbbb533d31976d178e21bf1237.
f82b115d was intended to fix SDL3 applications unexpectedly switching to the native display mode.
However, after further investigations, the bug is caused by other issues rather than the
NtUserSetActiveWindow() call. In fact, by tracing the message sequence when restoring a window,
there should be a WM_ACTIVATE message before WM_SYSCOMMAND SC_RESTORE.
Fix Warhammer: Vermintide 2 (552500) failing to enter fullscreen mode after focus loss. The game
needs a WM_ACTIVATE message before WM_SYSCOMMAND SC_RESTORE.