-
Notifications
You must be signed in to change notification settings - Fork 932
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
Xlib must die #3198
Comments
isn't cursor being drawn on the server? Or we must submit a
doesn't matter, but we don't need x11-dl that hard.
yes
no. |
Can you elaborate on this? I know that |
any API wants a |
I believe Haiku has Xlib compatibility through the xlibe library, but not XCB compatibility. So without a native implementation of Haiku's GUI api, dropping Xlib support would mean dropping Haiku support. |
if they are interested they can send patches like redox did to even have their native platform working. |
Haiku apparently has some kind of Wayland support too. Which is better for running applications currently? Native Haiku support in winit would be good. |
Doesn't this run into rust-windowing/raw-window-handle#120? |
x11rb's
This is X11. Of course everything is horrible. ;-) Like windows, pixmaps, fonts, cursors are objects. Once created, one can tell the server to use the cursor when the mouse is inside "your" window. For creating a cursor, there are many options, but besides the legacy ones, you basically update an image (or a list of images and a delay between them) to the X11 server. Everything else happens client side and is convention. |
Another one bites the dust. This replaces the code dependent on libxcursor with equivalent code written using x11rb, featuring its special "cursor" module. cc #3198 Signed-off-by: John Nunley <dev@notgull.net>
Another one bites the dust. This replaces the code dependent on libxcursor with equivalent code written using x11rb, featuring its special "cursor" module. cc #3198 Signed-off-by: John Nunley <dev@notgull.net>
Another one bites the dust. This replaces the code dependent on libxcursor with equivalent code written using x11rb, featuring its special "cursor" module. cc #3198 Signed-off-by: John Nunley <dev@notgull.net>
Another one bites the dust. This replaces the code dependent on libxcursor with equivalent code written using x11rb, featuring its special "cursor" module. cc #3198 Signed-off-by: John Nunley <dev@notgull.net>
Another one bites the dust. This replaces the code dependent on libxcursor with equivalent code written using x11rb, featuring its special "cursor" module. cc #3198 Signed-off-by: John Nunley <dev@notgull.net>
Another one bites the dust. This replaces the code dependent on libxcursor with equivalent code written using x11rb, featuring its special "cursor" module. cc #3198 Signed-off-by: John Nunley <dev@notgull.net>
Another one bites the dust. This replaces the code dependent on libxcursor with equivalent code written using x11rb, featuring its special "cursor" module. cc #3198 Signed-off-by: John Nunley <dev@notgull.net>
Another one bites the dust. This replaces the code dependent on libxcursor with equivalent code written using x11rb, featuring its special "cursor" module. cc #3198 Signed-off-by: John Nunley <dev@notgull.net>
Another one bites the dust. This replaces the code dependent on libxcursor with equivalent code written using x11rb, featuring its special "cursor" module. cc #3198 Signed-off-by: John Nunley <dev@notgull.net>
Another one bites the dust. This replaces the code dependent on libxcursor with equivalent code written using x11rb, featuring its special "cursor" module. cc #3198 Signed-off-by: John Nunley <dev@notgull.net>
Another one bites the dust. This replaces the code dependent on libxcursor with equivalent code written using x11rb, featuring its special "cursor" module. cc rust-windowing#3198 Signed-off-by: John Nunley <dev@notgull.net>
Xlib is the legacy strategy for interacting with the X server. It has since been replaced by libxcb, which is lighter and has fewer soundless holes.
x11rb
wraps aroundlibxcb
and reimplements the protocol parsing logic in safe Rust, further reducing the number of places where unsound logic can occur.List of places in
winit
where Xlib still lurks:SelectXkbEvents
(cc Revert select_xkb_events to its previous impl #3087)Discussion questions:
x11-dl
withtiny-xlib
, is this possible?Xlib
entirely and just use XCB?x11rb
's pure-Rust backend?The text was updated successfully, but these errors were encountered: