fix: make Alt+Enter a borderless fullscreen toggle #5
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Freminet--ScarlettX!5
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/5/head"
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?
@AutoComput on GitHub · 2026-11-21 10:08 UTC · original
AutoComput:fix/alt-enter-fullscreen→main· +43 −1 · 3 files · 1 commits · merged 2026-11-22 10:19 UTCTL;DR
Alt+Enter is handled by DXGI, which takes the swap chain fullscreen without the buffers being resized, and every
Presentfails after that. This turns that off withDXGI_MWA_NO_ALT_ENTERand has the window toggle borderless fullscreen on its monitor instead. The swap chain already stretches, so nothing else changes.test_d3d12_present_windownow sends Alt+Enter twice and checks the window covers the monitor and comes back. That only proves the window part. I couldn't reproduce the original freeze without the title, so please try it in game.Enter is also the A button, so Alt+Enter still presses A. I only changed the Presentation bullet in the README, the known problems line is yours to update once it's confirmed.