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

Expose properties of Winit*Event #856

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

egasimus
Copy link

@egasimus egasimus commented Jan 8, 2023

Just changing from pub(crate) to pub to allow these structs to be created from outside the crate.

This enabled me to write an alternate winit backend which shares the winit event loop between multiple windows. So far it renders a background and receives events from each window; I'm currently putting the XWayland module back together and then I'll try to get multiple views into the same screenspace from winit and then try again to port my compositor to the udev backend through this Engine trait.

@heavyrain266
Copy link

Links which you provided leads to private repo also from the talk on matrix, winit will be replaced with pure backends for both, X11 and Wayland because it doesn't play well with Compositor's event loop.

@egasimus
Copy link
Author

See also: #858

@Drakulix
Copy link
Member

Tbh, there is a reason these are not exposed by default, because the contents of these events is not part of the public api.

I would rather like to see a modification of the winit-Backend, that allows to create a new WinitGraphicsBackend from an existing WinitEventLoop basically breaking apart the init-methods, which always return both.

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.

3 participants