-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Replace Xlib by XCB written in Rust #386
Comments
This is a fantastic idea - just today I have run into two xlib related threading issues in servo. |
Unfortunately after some investigations I don't think it's possible, except if we replicate the internals of libxcb. |
@tomaka is there are particular problem with replicating its internals? I just took a look around and it doesn't seem too bad. (I think I might volunteer to implement this...) |
I'm not sure if that's a good idea, though. You have to use xlib to open an X connection (that will be passed to GLX), then get a pointer to the XCB object from the You would therefore lose most of the advantages of using Rust. It wouldn't bring anything over using XCB directly. |
I'd love to see glutin get support for xcb as well. The vulkan implementation on my computer only has support for VK_KHR_xcb_surface and not VK_KHR_xlib_surface. |
@Ben-Alderson see rust-windowing/winit#5 |
Motivation
Process
dlopen
ing the appropriate libraries. See http://xcb.freedesktop.org/opengl/. Unfortunately video drivers are tightly coupled to Xlib, so it's not possible to entirely remove it.Alternatives
Wait for Wayland to be the most used windowing system, which should be the case around 2084.
The text was updated successfully, but these errors were encountered: