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

Workaround winit bug where events execute immediately #4

Merged
merged 1 commit into from
May 17, 2024

Conversation

ddfisher
Copy link

Winit on web has a bug where the EventLoopProxy will immediately call handlers for a custom event in send_event instead of scheduling it for the next event tick. This causes double-borrows of our MutableAppContext, which hard crashes the app. This is a bandaid fix which pushes those calls on the microtask queue instead.

@ddfisher ddfisher requested a review from vorporeal May 17, 2024 23:11
@ddfisher ddfisher merged commit 1813f60 into warpdotdev:warpdotdev/v0.30.x May 17, 2024
72 of 104 checks passed
@ddfisher ddfisher deleted the day/fix-wasm-crash branch May 17, 2024 23:15
ddfisher added a commit that referenced this pull request Jun 12, 2024
ddfisher added a commit that referenced this pull request Jun 13, 2024
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