Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FindMyMouse]Fix hang on top left activation #19347

Conversation

jaimecbernardo
Copy link
Collaborator

Summary of the Pull Request

Fix the issue where Find My Mouse is hanging when activated on the top left corner of the screen.

PR Checklist

Detailed Description of the Pull Request / Additional comments

The initial code uses the (-1,-1) coordinates to identify if mouse movement has been detected since activating FindMyMouse from the async RawInput handler. Windows 11 reports (-1,-1) as the top left corner of a single monitor setup so this makes little sense for that case. This PR uses (LONG_MIN, LONG_MIN) as the null point instead.

Validation Steps Performed

Verified that 0.60 replicated the issue on a machine and this fix works well on that same machine.

@jaimecbernardo jaimecbernardo merged commit d37bab3 into microsoft:main Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants