-
Notifications
You must be signed in to change notification settings - Fork 921
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
Replace EventLoopWindowTarget
with ActiveEventLoop
#3299
Conversation
fe8a558
to
bb75f2d
Compare
Let me know if I can help out here, happy to do the rebase. |
1dd64d8
to
8e6db73
Compare
Unsure about:
|
1a74d15
to
2e1dc24
Compare
Do we even need traits like that? It's not even less code for us and I'm not sure what users gain out of this.
I don't know what the lowest common denominator is, but for Web either event loop is fine. |
It's mostly meant as an intermediary, until we feel confident in disabling user's ability to create windows from outside the running event loop. But before I feel that we can make that change, it must be easy for them to do the correct thing, and that basically requires #2903. |
What I meant to say is that we can just implement these things as methods on |
None other than keeping |
Right ... sorry ... brain-fart. Now it makes sense 😅! |
2e1dc24
to
5f4430e
Compare
Replaced with #3447. |
This is done for several reasons:
ActiveEventLoop
(which resolves a bunch of long-standing issues on macOS and iOS).Deref
onEventLoop
, which is discouraged by the C-DEREF guideline.crate::event_loop::EventLoopWindowTarget
in the platform's ownEventLoop
.ActiveEventLoop
to contain&mut
.Blocked on #3298.CHANGELOG.md
if knowledge of this change could be valuable to users