kbm: the window takes the cursor when it has the focus at attach #974
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!974
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-974"
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?
@b4rightnow on GitHub · 2026-11-24 09:46 UTC · original
b4rightnow:kbm/startup-capture→main· +73 −23 · 1 files · 2 commits · openStacked on #973; only the top commit (
5b2d568) belongs here.Sometimes the mouse did nothing in a title until the XCL window was clicked away from and back. The window is created with
WS_VISIBLE, soCreateWindowExWshows and activates it and sends itsWM_ACTIVATEbefore it returns.kbm::attach, which records the window, runs only after that (present.rs,window_thread), soon_messagetook that message for another window's and passed over it. The cursor was never held, and mouse movement, which counts only while the cursor is held, went unread until the window was activated again. It happened only when Windows activated the new window; otherwise the first click into it was the activation and input worked. Keyboard keys were not affected (they need only the focus).attachnow takes the cursor itself when the window has the focus by then, throughcursor_holdas thatWM_ACTIVATEwould have.What is in it
crates/xcl/src/hle/kbm.rs:attachholds the cursor of a window that has the focus (attach_activation→cursor_hold); the testa_window_attached_with_the_focus_takes_the_cursor.Tested
cargo test --workspace -- --test-threads=4on5b2d568: 721 passed, 0 failed, 41 ignored.gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64).cargo test -p xcl --lib kbm: 9 passed, 0 failed.Regression run
main:
this PR:
Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 13:51 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Thanks!
@JJAutoCompare on GitHub · 2026-11-25 05:38 UTC · original
Empirical test report (
5b2d5689)PR #974, tested at commit
5b2d568992cce45124d58d0396dcecea595072d1.Hardware / environment
rustc 1.100.0 (0ef1bc386 2026-11-09). DXC1.9.2609.5 (01b62ad47), as reported by the bundleddxcompiler.dll.XCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1. Both commands ran directly through Cargo, outsideInvoke-ArcTest.ps1, with zero Arc GPU mutex hold.Commands and results
cargo test --workspace --no-runexited 0 and built the workspace test executables.cargo test -p xcl --lib 'hle::kbm::tests::' -- --nocaptureexited 0. The test summary recorded 8 passed, 0 failed, 0 ignored, and 693 filtered out. The log contained 0 uppercaseSKIPPEDlines.Observed behavior
a_window_attached_with_the_focus_takes_the_cursorpassed. With foreground input, the cursor decision requests capture. With background input, it does not request capture.title_bar_clicks_leave_the_cursor_freepassed. The decision leaves the cursor free through title-bar activation, moving, and maximizing. Client-area clicks and ordinary activation request capture. A held cursor follows resizing and is released on focus loss.Not tested
The full GPU workspace suite, game smoke runs, and live Win32 window activation and cursor capture were omitted.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr974-focused.logand published.@S1m0ne1997 on GitHub · 2026-11-25 14:28 UTC · original
Test report for
5b2d568992cce45124d58d0396dcecea595072d1(this PR's head), for #1607.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09)x86_64-pc-windows-msvc, debug.cargo build --workspace, thencargo test --workspace -- --test-threads=4at the head: 721 passed, 0 failed, 41 ignored.gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64).Regression run (retail title,
scripts/smoke.ps1 -Seconds 60, release;mainbuilt from the commit in its block, this PR from its head, no uncommitted changes)main:
this PR:
Not tested
AI use: Claude Code with Claude Opus 5.5 ran the build, the suite and the regression run and wrote this report at my request.
@oni-swr on GitHub · 2026-11-25 14:49 UTC · original
amd-win test report for head
5b2d568992cce45124d58d0396dcecea595072d1Setup
main06c9f5505f63f10c5ec49ef932d75b2c28177324(merge commitbf7c558c0fde86eaefa6780ccb011b2436324b23; it merged without conflicts). That is not the PR head itself, so the smoke block below names the merge commit.Tests
cargo build --workspacethencargo test --workspace --no-fail-fast -- --test-threads=4: 1266 passed, 1 failed, 46 ignored, 7SKIPPEDlines (f16/f32 per-lane form, no heap windows)gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722:res[30]GPU 0x1 vs CPU 0x7fffffff). It fails the same way onmain(1264 passed, 1 failed, 46 ignored), so it is not caused by this PR.hle::kbm::tests::a_window_attached_with_the_focus_takes_the_cursorpasses.Regression run (60 s, same title, networking off;
mainfirst, then the merge)Exit code 0x0 on both. The full
xcl-smokeblocks are not pasted because of the merge-commit caveat above.Not tested
AI use: this run and report were done by Claude Code (Claude Sonnet 5.5).
@DavidM1911 on GitHub · 2026-11-26 03:23 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
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.