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 no-op window resize requests #3131

Merged
merged 4 commits into from
Jan 28, 2025

Conversation

proneon267
Copy link
Contributor

@proneon267 proneon267 commented Jan 26, 2025

Related PR: #2364

Currently, all resize requests are passed down to the impl layers, even when the same window size as the current size is requested. Although this is a no-op on most backends, but on some backends(like on gtk), this results in firing of window resize events at wrong times.

Hence, this PR ignores such no-op window resize requests at the core, preventing them from being transmitted to the impl layer.

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

Copy link
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

I'm a little concerned about your description of events being triggered at the "wrong" times - that seems to suggest there's something deeper going on - but I can't argue that this change makes sense at a high level.

A small change to the release note, but otherwise this looks good. Thanks for the patch!

@freakboy3742 freakboy3742 merged commit 58249c5 into beeware:main Jan 28, 2025
48 checks passed
@proneon267 proneon267 deleted the ignore_no_op_resize_requests branch February 22, 2025 04:01
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