From 1b48c658cfb4e0dbe43177309bfb92053d2f0176 Mon Sep 17 00:00:00 2001 From: Wintego <17454585+Wintego@users.noreply.github.com> Date: Thu, 5 Nov 2026 08:30:33 +0300 Subject: [PATCH] Go fullscreen at start again when the window is raised --- runtime/gfx_window_win.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);