Replace EventLoopWindowTarget with ActiveEventLoop#3299
Replace EventLoopWindowTarget with ActiveEventLoop#3299
EventLoopWindowTarget with ActiveEventLoop#3299Conversation
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).DerefonEventLoop, which is discouraged by the C-DEREF guideline.crate::event_loop::EventLoopWindowTargetin the platform's ownEventLoop.ActiveEventLoopto contain&mut.Blocked on #3298.CHANGELOG.mdif knowledge of this change could be valuable to users