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

On Web, wake event loop on request_redraw() #2732

Merged
merged 1 commit into from
May 28, 2023

Conversation

daxpedda
Copy link
Member

  • Tested on all platforms changed
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

Currently, when calling Window::request_redraw() from outside the event loop, for example from an async background task, it will not wake up the event loop.
This fixes it by simply calling the same internal function used to wake up the event loop by sending a UserEvent, I hope that is correct.

Fixes #2019.

@daxpedda
Copy link
Member Author

CI fails because of the new Clippy version.
See #2729.

@daxpedda daxpedda closed this Mar 13, 2023
@daxpedda daxpedda reopened this Mar 13, 2023
@daxpedda
Copy link
Member Author

Restarted after #2729. CI is green now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 participant