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

[Window] Ignore duplicate mouse enter events. #93100

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Jun 12, 2024

Fixes #93085

Alternatively, #92908 code can be moved to the macOS DisplayServer, but this will require more complicated checks (actually tracking is event was received by Widows), and might require the same changes on other platforms (I can't reproduce it on Windows or Linux, but system events timing can be inconsistent).

Receiving a duplicate enter event for the same window and ignoring it should not have any negative effects, not receiving it at all will break UI, so it is a safer option. The original check which was showing a warning is preserved (it is supposed to warn if different window get enter event without previously hovered window getting exit event first and still serve this purpose).

@bruvzg bruvzg added this to the 4.3 milestone Jun 12, 2024
@bruvzg bruvzg requested a review from a team as a code owner June 12, 2024 20:43
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirm this fixes the warning for me on Linux.

@akien-mga akien-mga merged commit 5c05e98 into godotengine:master Jun 13, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants