Skip to content

Let a captured widget drop outdated mouse-move events - #101

Merged
trissim merged 6 commits into
mainfrom
perf/captured-pointer-motion-20261007
Oct 7, 2026
Merged

trissim merged 6 commits into
mainfrom
perf/captured-pointer-motion-20261007

Conversation

@trissim

@trissim trissim commented Oct 7, 2026 •

Copy link
Copy Markdown

The app and message pump get a _can_replace_message hook, which defaults to message.can_replace(pending). For mouse moves while a widget holds the mouse, App replaces an older pending move with a newer one if the two are raw, from the same sender and have the same buttons and modifiers, and the captured widget's can_replace_mouse_move agrees. widget.py gets that method. One test file is added.

@trissim
trissim marked this pull request as ready for review October 7, 2026 20:23
Copilot AI balanced review requested due to automatic review settings October 7, 2026 20:23

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 merged commit 17df417 into main Oct 7, 2026
0 of 22 checks passed
@trissim trissim changed the title Let captured controls replace obsolete absolute pointer positions Let a captured widget drop outdated mouse-move events Oct 11, 2026
@trissim
trissim deleted the perf/captured-pointer-motion-20261007 branch October 11, 2026 20:05
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