lifecycle: do not latch MOUSE_DRAGGING on WM_NCLBUTTONDOWN #524
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!524
Loading…
Reference in a new issue
No description provided.
Delete branch "aowu/Darner:pr/fix-titlebar-drag-lock"
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?
Problem
window_proccurrently handlesWM_ENTERSIZEMOVE | WM_NCLBUTTONDOWNin the same arm, settingMOUSE_DRAGGING = trueand releasing mouse capture.Clicking the title bar or window chrome (e.g. a quick click without dragging) sends
WM_NCLBUTTONDOWN, which does not always enter a size/move loop or emitWM_EXITSIZEMOVE. When that happens,MOUSE_DRAGGINGstays latchedtrueuntil a client-area left click arrives.Fix
Handle
WM_NCLBUTTONDOWNseparately so it still releases mouse capture (capture_mouse(hwnd, false)), while onlyWM_ENTERSIZEMOVElatchesMOUSE_DRAGGING = true(paired cleanly withWM_EXITSIZEMOVE).Verification
cargo test -p darner-hle --lib lifecyclepasses (22/22).Test needed — commit
01487874; what to check: the change described aboveEvidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.
Reply
testingto take this run; it's free again after 24 h with no results.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.