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

Propagate GTK mouse leave notification as MouseEvent #552

Merged
merged 1 commit into from
Feb 15, 2020

Conversation

ForLoveOfCats
Copy link
Collaborator

Fixes #541

GTK doesn't seem to want to give mouse motion event outside the window (at the very least I couldn't find anything online on how to coerce it to) so this just grabs the mouse leave notification and forwards it as a MouseEvent

@ForLoveOfCats
Copy link
Collaborator Author

Here are some before and afters of this PR (on master as of 4cd1ea0)

before_leave
after_leave

Copy link
Member

@cmyr cmyr left a comment

Choose a reason for hiding this comment

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

Works great, thanks!

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.

Failure to deliver mouse events outside of the window
2 participants