kbm: leave the cursor free after a click on the title bar #973
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!973
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-973"
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/titlebar-click→main· +52 −23 · 1 files · 1 commits · openA click on the XCL window's title bar snapped the cursor to the centre of the window and hid it. Two messages took the cursor there:
WM_ACTIVATEwithWA_CLICKACTIVE, which a click on the title bar of an inactive window sends, andWM_EXITSIZEMOVE, which ends the move loop that any click on the title bar starts, even without a drag. Both clipped the cursor to the one-pixel point at the client area's centre.Now only keyboard activation (Alt+Tab, the window opening) and a click in the client area (
WM_LBUTTONDOWN) take the cursor.WM_SIZE/WM_MOVEmove the held point only while the cursor is held, so maximising from the title bar leaves it free too. Dragging the window (#176) is unchanged.What is in it
crates/xcl/src/hle/kbm.rs: the decision is a pure function,cursor_hold, used byon_message; the testtitle_bar_clicks_leave_the_cursor_free.Tested
cargo test --workspace -- --test-threads=4on03d39a1: 720 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: 8 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 (
03d39a1b)Hardware / environment
1.100.0 (0ef1bc386 2026-11-09)and DXC1.9.2609.5 (01b62ad47). Cargo used the test profile with debug info and incremental compilation disabled.03d39a1b2b9799ad51530d05561810ff29c4dd58. Both Cargo commands ran directly, outsideInvoke-ArcTest.ps1, with zero Arc GPU mutex hold.Commands and results
cargo test --workspace --no-runexited 0 and built the workspace test executables.XCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1,cargo test -p xcl --lib hle::kbm::tests::title_bar_clicks_leave_the_cursor_free -- --nocaptureexited 0. The focused log recorded 1 passed, 0 failed, 0 ignored, and 0 skipped.Observed behavior
The new CPU-only unit test calls
cursor_holddirectly. Its assertions passed for click activation, entry to and exit from the move loop, and movement and resizing while the cursor is free. It also checked capture on client-area left click and keyboard activation, keeping the cursor held on resize, and releasing it on focus loss.Not tested
The full GPU workspace suite and game smoke runs were omitted. Live Win32 message delivery and cursor clipping were outside this unit test's coverage.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr973-focused.logand published.@S1m0ne1997 on GitHub · 2026-11-25 14:23 UTC · original
Test report for
03d39a1b2b9799ad51530d05561810ff29c4dd58(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: 720 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
03d39a1b2b9799ad51530d05561810ff29c4dd58Setup
main06c9f5505f63f10c5ec49ef932d75b2c28177324(merge commitfc50f56e10ef169d03b35ac1756992caa3d67324; 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: 1265 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::title_bar_clicks_leave_the_cursor_freepasses.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
cursor_holdunit test and a title run were done.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.