-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
D - hardLikely harder than most tasks hereLikely harder than most tasks hereDS - waylandAffects the Wayland backend, or generally free Unix platformsAffects the Wayland backend, or generally free Unix platformsDS - x11Affects the X11 backend, or generally free Unix platformsAffects the X11 backend, or generally free Unix platformsS - apiDesign and usabilityDesign and usability
Milestone
Description
Under the hood both Unix backends use calloop, which supports registering arbitrary file descriptors through the polling crate. However, winit usually isn't the only thing running in the GUI system; there's also zbus, accesskit and other things. It would be nice if you could register these systems into winit and poll them without needing to spawn another thread.
Two potential options here:
- Expose a way to register file descriptors in
calloop, then receive events as normal through thewinitevent loop. Then expose a higher-level I/O mechanism in another crate. - Port from
callooptoasync-io. This would take a lot more work and be more controversial, but it would allow for seamless integration withzbus.
Metadata
Metadata
Assignees
Labels
D - hardLikely harder than most tasks hereLikely harder than most tasks hereDS - waylandAffects the Wayland backend, or generally free Unix platformsAffects the Wayland backend, or generally free Unix platformsDS - x11Affects the X11 backend, or generally free Unix platformsAffects the X11 backend, or generally free Unix platformsS - apiDesign and usabilityDesign and usability