Example of migrating backends to ApplicationHandler#3387
Example of migrating backends to ApplicationHandler#3387madsmtm wants to merge 1 commit intoapplication-handler-transitionfrom
ApplicationHandler#3387Conversation
|
yeah, I can't write like that on Wayland at all until I change other API. The issue is that |
|
Right, I missed the |
|
If it's not really feasible to rewrite the Wayland backend to utilize this trait until we do other work, then... Don't! Use the I'm also only talking about removing the |
|
@madsmtm I may dispatch events from the window creation, like I'd need to change entire window creation process to be |
See #3386.
I stubled into a roadblock for this, as there are several backends which are currently queuing events. This means they either need some sort of event structure themselves if we're to remove
Event<T>, or will have to be rewritten to not queue events (preferred).Backends that are currently queuing events: macOS, iOS, web, Windows, Wayland.
I can only speak for macOS and iOS, but I'm pretty sure those already prevent re-entrancy for most events, so migrating to handling events immediately will be the strictly better solution.
In any case, this PR showcases the migration of the Redox backend, so it should be technologically possible.