D3D12.X: drop SC_KEYMENU so the window is never frozen in menu mode #1431
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1441"
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?
Imported from ivall/xcl. Originally posted by WTactic on 2026-11-24T16:00:17Z.
Pressing Alt or F10 sends
WM_SYSCOMMAND SC_KEYMENU, which puts Windows default message handling into a modal menu loop on the thread that owns the window. The title stops drawing and reading input until a key ends the loop, with nothing on screen indicating why it hung.Drop
SC_KEYMENUin the window procedure next toWM_CLOSEhandling so keyboard menu activation cannot freeze the game thread.What is in it
crates/xcl/src/hle/d3d12x/present.rs: interceptWM_SYSCOMMANDwithSC_KEYMENUinwndprocand drop it; add unit testsyscommand_keymenu_is_dropped.Tested
rustc 1.97.1, release/debugcargo test -p xcl --lib syscommand_keymenu_is_dropped: 1 passed, 0 failedRegression run
main(1d027e5):PR (
cd45c76):Not tested
AI use
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T16:54:10Z.
Full-suite run, since this PR has no test report yet. Tested exact head
98672d6(on its base930e8b4).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.syscommand_keymenu_is_dropped.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored, no skips.Not tested
AI use
Imported from ivall/xcl. Originally posted by mastrr9 on 2026-11-24T17:05:41Z.
Verified head
98672d691847685e9a501b627cbfe8ce3eefb621on Windows 11 / NVIDIA RTX 5080:cargo test -p xcl --lib -- hle::d3d12x::present --test-threads=4: 7 passed, 0 failed, 0 ignored (0 new compiler warnings).Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T18:52:35Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T05:27:41Z.
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:32:36Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:45:51Z.
Triage (#1607) – head
cd45c76No open or merged PR makes the same change;
main'swndproc(present.rs) still passesWM_SYSCOMMAND/SC_KEYMENUtoDefWindowProcW.frame_dump_tests::syscommand_keymenu_is_droppedcallswndprocwith a nullHWND;DefWindowProcWon a null window most likely returns 0 too, so the test probably passes without the fix and does not show that the message is dropped.Dropping every
SC_KEYMENUalso disables Alt+Space (the system menu); worth a line in the description. The PR conflicts withmainand needs a rebase.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.