[NTUSER] Fix sticky mouse buttons (#6426)
authorDoug Lyons <douglyons@douglyons.com>
Wed, 13 Mar 2024 06:16:02 +0000 (01:16 -0500)
committerGitHub <noreply@github.com>
Wed, 13 Mar 2024 06:16:02 +0000 (07:16 +0100)
commitf132020d8b9793e82e6f14c83cdad7864ba53c14
tree0253245edae1d70f82e885fde774aaae1ce9660d
parent9ae73010c219bf7195a3b4be2897269c1e57a0aa
[NTUSER] Fix sticky mouse buttons (#6426)

Fix Mouse Buttons Sticking Down causing unexpected window dragging.
This is a patch supplied by @I_Kill_Bugs and seems to work well as tested by @julenuri.

JIRA issue: CORE-11775 'GIMP 2.6.12: Sticky issue when dragging with the mouse'
JIRA issue: CORE-14998 'Google Chrome 40.0.2214.115, when moving window position by dragging at the titlebar, the drag-end is not detected, the window may stick with the mouse pointer'
Improves JIRA issue: CORE-18511

Proposed changes
Add extra code into nonclient.c procedure DefWndDoSizeMove to drop tracking.
If we get a mouse move with the mouse left button down, then break out of testing.
win32ss/user/ntuser/nonclient.c