You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using glutin which exports many functions from this crate. I already have a connection open to X and I'd like to share my connection with winit; would it be a good idea to add a constructor to XConnection that takes in an existing *mut xlib::Display?
EDIT: just peeked into the code and noticed that a Mutex was already used for X11_BACKEND before XConnection::new is called so this might actually be a bit more complicated..
The text was updated successfully, but these errors were encountered:
Sorry for the delay! The X11_BACKEND mutex shouldn't really be a problem, since it will never be used before an EventsLoop is constructed. It does make it a bit more work to implement this, though.
I haven't looked into all the correctness/etc. concerns with sharing a connection, but at face value, I'm not opposed to an EventsLoopExt constructor being added for this.
It would be nice to be able to "bring your own connection". Right now this crate just uses Xlib, but I'm working on making it so most functionality takes places over an x11rbConnection. If I can make it so all functionality takes place over the Connection, then it should be possible to just pass in an impl Connection to run the X11 backend over whatever you want.
I'm using
glutin
which exports many functions from this crate. I already have a connection open to X and I'd like to share my connection with winit; would it be a good idea to add a constructor to XConnection that takes in an existing*mut xlib::Display
?EDIT: just peeked into the code and noticed that a Mutex was already used for X11_BACKEND before XConnection::new is called so this might actually be a bit more complicated..
The text was updated successfully, but these errors were encountered: