Cursor: the title's window answers WM_SETCURSOR with a pad too #2809
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2809
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2809"
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?
@tribbedev on GitHub · 2026-11-29 17:34 UTC · original
tribbedev:cursor-pad→main· +779 −822 · 33 files · 11 commits · openFixes #2807
What it changes
The title's window answers
WM_SETCURSORfor every start now, a pad's too.A launcher (the script,
play-foxhound.exe, Steam) makes the shell set Windows'"app starting" cursor — the arrow with the ring — for the window it hands over,
and only an answer to
WM_SETCURSORclears it. The window the title createscarries no cursor of its own (its class's
hCursoris null), andlifecycle.rsanswered only when the mouse and keyboard were on(
mnk::enabled()), so a start played with a pad kept that ring beside thepointer for the whole session — over the picture, in a screenshot, and in a
stream (Parsec) just the same.
The branch itself is unchanged: the arrow while the F1 menu is open, no cursor at
all while the title plays (it draws its own where it wants one). What is gone is
the condition that made it the mouse and keyboard's branch alone. The
native-mouse branch below it is untouched, and the two cannot both run: this one
is gated on
!native_mouse_enabled().How it was tested
tracing): GeForce RTX 3080 Ti, Windows 11 (x64), Series X profile,
-Res 1080to1440, DLSS quality, frame generation 2x, MOUSE AND KEYBOARD off(
VICTORY_MNK=0, Steam Input's virtual pad for a Stadia controller), raytracing off.
the world, in a window, in a screenshot and in a Parsec session; with
VICTORY_MNK=1it did not happen.I cannot look at from this side. The session that reported it runs on this
build, and I will add what it sees here.
shader changes.
cargo testpassed for the crates it touches: yes —cargo build --release --locked -p victory,cargo test --release --locked -p victory-hle(423 + 2), no new warning (
rustfmtclean on the file).Checked for overlap
this touches. Related: #591 (window moves and the F1 menu's motion kept out of
the captured mouse) and #2734 (the captured mouse to the virtual pad in AUTO)
are about the captured mouse, not the window's cursor;
#2225, #989, #1739 and #652 are mouse-look layouts and bindings. None of them
touches
WM_SETCURSORincrates\victory-hle\src\modules\lifecycle.rs, whichis the only file here.
@tribbedev on GitHub · 2026-11-29 17:40 UTC · original
The
checkjob is red on something this PR does not touch:git diff --stat 55d06914..HEADhere iscrates\victory-hle\src\modules\lifecycle.rsonly (6 insertions, 2 deletions), and
crash.rswas last changed byc777d871("Merge branch 'wave-3' into combined") — so
mainis what the workspace clippyfails on, which is #1267.
Nothing else of the CI ran: both clippy steps stop at that error, so
cargo test --workspacenever starts. What I ran locally on this branch:cargo build --release --locked -p victory(ok) andcargo test --release --locked -p victory-hle(423 + 2 passed);cargo clippy -p victory-hle --all-targets -- -D warningsstops at the samevictory-loaderfinding, from a different feature set.Happy to rebase once main is green. If you would rather have CI green with this
PR, say so and I will add the one-line
#[expect(dead_code)](or the removal) tocrash.rshere — I left it out because it is not this change's business.1a6b06dbc1to6514b42bf56514b42bf5to3c58663bb6@tribbedev on GitHub · 2026-11-30 16:57 UTC · original
The
checkjob stopped in main's own gate, not in this change:cargo clippy --workspace --all-targets -- -D warningsfails onmainat five places before itreaches anything of this branch (
7addcfc7leftcard_pass's two test calls atfive arguments, plus four lints), so neither clippy step nor
cargo test --workspaceever ran.That is repaired on its own, so this PR stays one change: #4166. Both clippy steps
pass with it on top of
main(-D warnings, default and--all-features). Once itlands I will rebase this branch and let the job run through the tests here.
3c58663bb6tod19c945c39@andrewpozdnakov7-jpg on GitHub · 2026-12-01 08:41 UTC · original
GitHub currently marks this PR
DIRTYand compares 33 files. I cherry-picked your cursor commitd19c945onto current main5fabb46. Git retained your original author and date. The result is one commit,8d5b2e6, touching onlylifecycle.rs(+6/−2).Branch for updating this PR
I replayed the exact
WM_SETCURSORbranch with seven synthetic inputs on each revision. Main left the pad's two foreground client cases unhandled. The rebased commit handles both, hiding the cursor during play and setting the arrow for F1. The other five cases matched, including the background, nonclient and native-mouse cases.cargo check --locked -p victory-hlepassed on Windows.cargo xtask policypassed. In-game cursor behaviour still needs a run on the original setup.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.