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

Ignore mouse motion events when the window does not have keyboard focus #509

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

nbriggs
Copy link
Collaborator

@nbriggs nbriggs commented Aug 16, 2024

This addresses a problem wherein mouse motion in a Medley SDL window that does not have the keyboard focus slows down drastically if the cursor moves over a TEdit window in the exposed area.

The change is to detect the SDL keyboard focus events and stop reporting mouse motion events to Medley when it does not have the keyboard focus.

Closes Interlisp/medley#1807

@nbriggs nbriggs requested review from masinter and hjellinek August 16, 2024 19:53
@nbriggs nbriggs self-assigned this Aug 16, 2024
Copy link

@hjellinek hjellinek left a comment

Choose a reason for hiding this comment

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

Read and tested and approved!

@nbriggs nbriggs merged commit 5c9b5ef into master Aug 22, 2024
@nbriggs nbriggs deleted the sdl-mouse-fix branch December 3, 2024 17:51
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.

mouse cursor tracking becomes slow when the SDL window has another window overlapping it
2 participants