diff --git a/runtime/gfx_window_win.c b/runtime/gfx_window_win.c index 3ec11635..5e70426d 100644 --- a/runtime/gfx_window_win.c +++ b/runtime/gfx_window_win.c @@ -395,10 +395,12 @@ static void window_main(void *arg) { outer_size(g_hwnd, cw, ch, &ow, &oh); SetWindowPos(g_hwnd, HWND_BOTTOM, 0, 0, ow, oh, SWP_NOMOVE | SWP_NOACTIVATE | SWP_SHOWWINDOW); if (!background) { + // Pending before the raise: the activation it gets is the first WM_ACTIVATEAPP, which takes the fullscreen + // setting; set after it, fullscreen waited for the next activation and the game started in a window + g_fs_pending = cfg_fullscreen(); raise_window(g_hwnd); // a frontend's player may have no way to reach a window left behind FLASHWINFO fw = {.cbSize = sizeof fw, .hwnd = g_hwnd, .dwFlags = FLASHW_TRAY | FLASHW_TIMERNOFG}; FlashWindowEx(&fw); - g_fs_pending = cfg_fullscreen(); } note_applied(); refresh_rate_update(g_hwnd, 1);