[bug][startup] Alt+Enter after the start's borderless full screen hides the window (white area, gone from the taskbar); the game keeps running #136
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happened
The game started in borderless full screen (Darner's own
DARNER_FULLSCREENmode; the log saysborderless fullscreen applied screen=(2560, 1440)). The F1 menu was closed. I pressed Alt+Enter to go back to a window.What I saw: the window turned white and then disappeared from the taskbar. The game did not stop: audio kept playing and the process kept answering.
What I read from the window without touching it:
0x04CF0000(WS_OVERLAPPEDWINDOW | WS_CLIPSIBLINGS), withoutWS_VISIBLEIsWindowVisiblereturned false, the process was responding, frames kept being presentedOne
ShowWindow(hwnd, SW_SHOW)from outside brought the window back normally. I did this once; it did not repeat.GPU and driver
NVIDIA GeForce RTX 2070 SUPER 8 GB (Turing), driver 621.40, Resizable BAR off. This looks like window code, not GPU code.
CPU, RAM and Windows version
AMD Ryzen 7 5800X, 32 GB, Windows 11 Pro Insider Preview build 26320.
Darner release or commit
Release build of
trustno1/main40ed13b91with upstream PR #76 and our own local commits merged; none of them toucheslifecycle.rs(empty git diff), andlifecycle.rsis identical on main57dea7f23.Spec dependence: likely general (plain user32 window code); untested on other GPUs and Windows builds.
Settings
Series S, DLSS Performance.
DARNER_FULLSCREENon (borderless at start). No other window switches that I know of.Logs
The play log from that run (about 8 MB, still growing) is not attached; I can attach it on request. Relevant:
borderless fullscreen applied screen=(2560, 1440)at 22:28:12Z, and the present-budget lines kept coming with failed=0 after the Alt+Enter.Likely cause (read from code, not yet confirmed by a test)
In
crates/darner-hle/src/modules/lifecycle.rs:hook()(~line 787) runs right after the window is created and callsfullscreen()(~803, defined ~306), which callsenter_borderless()(~368).GetWindowLongW(GWL_STYLE), ~371) for Alt+Enter to go back to. At that moment the title has not shown the window yet, so the saved style has noWS_VISIBLE. (I infer the timing from the style we read; I did not trace the title's ownShowWindowcall.)toggle_fullscreen()(~389) later restores it withSetWindowLongW(GWL_STYLE, saved.style)(~402). That clearsWS_VISIBLEon the now-visible window, so Windows hides it.Not checked: whether a window started with
DARNER_FULLSCREENoff, then toggled with Alt+Enter, behaves correctly (it should, as the saved style would then includeWS_VISIBLE). Other GPUs and Windows builds were not tried; the code is not GPU specific.Workaround until it is fixed
Do not press Alt+Enter after a borderless start. If the window is already hidden, it can be shown again from outside (for example
ShowWindowwithSW_SHOW). The F1 menu has a rowFULLSCREEN (NO BORDER)(crates/darner-gpu/src/host/menu.rs:542), but it only applies at the next start, and I have not tested whether starting with it off avoids the problem.Are you working on a fix?
Yes (Jesper-A), on branch
up-altenter-visible. Plan: when restoring, keep the window's currentWS_VISIBLEbit instead of the saved one, with a unit test on the style calculation. A small PR will follow and will reference this issue.Not checked
Other GPUs and makers, other Windows builds, Linux/Proton, a second Alt+Enter after the window is shown again, and the
DARNER_FULLSCREEN_BARSbackdrop path.Drafted with AI assistance (Claude Code).
Reproduced on another PC and Windows build with the v2026.12.03.01 release exe: the same symptom and the same window style as in the report. Also checked one case the report left open: a second Alt+Enter doesn't bring the window back.
PC: RTX 4080 16 GB (driver 32.0.16.1742), Ryzen 9 7900, 32 GB, Windows 11 Home 26200 (not Insider). Build: v2026.12.03.01 release
darner.exe. Settings: Series X, 4K output, DLSS Performance, frame generation 2x, ray tracing off, borderless at start (borderless fullscreen applied screen=(3840, 2160) content=(3840, 2160) placed=(0, 0, 3840, 2160) stretch=false).Steps: first start after the shader preload. At the account picker, with F1 closed, I pressed Alt+Enter once, then once more, then called
ShowWindow(hwnd, SW_SHOW)from outside. After each step I read the window withGetWindowLongW(GWL_STYLE)andIsWindowVisible(rectangles in 150 % scaled coordinates):0x940000000x04CF00000x84000000ShowWindow(SW_SHOW)0x94000000The game kept running throughout: the window title kept updating its fps, and in the meantime the game moved on from the account picker into the opening cutscene. The log has no ERROR lines and no swap-chain or device warnings, and the present-budget lines show
failed=0.So once the window is hidden, the keyboard alone can't get it back: the second Alt+Enter goes back to borderless, but
enter_borderlessbuilds its style from the current, hidden one.I tested #141 on the same PC; the results are there.
Fixed on main by
a917f992f("lifecycle: Alt+Enter out of borderless keeps the window shown (#136)"); closing. The repro on v2026.12.03.01 was from before that commit. If it still happens on a build that includesa917f992f, please reopen with the log. Trillazill confirmed the same change on the #141 branch.Drafted with AI assistance (Claude Code).
Reproduced on Windows 11 (build 26300), RTX 5080, build v2026.12.03.01-22: with FULLSCREEN (NO BORDER) on, Alt+Enter turns the window white and removes it from the taskbar. The process keeps running with no main window (MainWindowHandle 0), and pressing Alt+Enter again does not bring it back.
Drafted with AI assistance (OpenCode).