Skip to content

Deliver mouse events in order so one handler's capture reaches the next - #73

Merged
trissim merged 3 commits into
mainfrom
fix/ordered-pointer-capture-20261006
Oct 6, 2026
Merged

trissim merged 3 commits into
mainfrom
fix/ordered-pointer-capture-20261006

Conversation

@trissim

@trissim trissim commented Oct 6, 2026 •

Copy link
Copy Markdown

The app chose the target of every pointer event before a queued mouse-down handler could capture the mouse. App.on_event now awaits Screen._forward_event, and a message can carry a dispatch completion so the sender waits until the routed handlers have finished. Message, MessagePump, driver.py and pilot.py are changed to support this, and a driver comment is rewritten.

@trissim
trissim marked this pull request as ready for review October 6, 2026 09:49
Copilot AI balanced review requested due to automatic review settings October 6, 2026 09:49
@trissim
trissim merged commit 1a12a18 into main Oct 6, 2026
2 of 22 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@trissim trissim changed the title Order native pointer routing after capture-changing handlers Deliver mouse events in order so one handler's capture reaches the next Oct 11, 2026
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