4 ms·
I understand that Wayland doesn't support Xlib function calls. What are the options for those of us who rely on C code which which uses Xlib for 2d graphics a
by DonaldFisk 1y ago
I understand that Wayland doesn't support Xlib function calls. What are the options for those of us who rely on C code which which uses Xlib for 2d graphics and event handling? If I have to switch to e.g. GTK, I'd not only have to rewrite all the Xlib calls, but all the code which depends on this, as Xlib and GTK do graphics ad events quite differently.
- wizzwizz4 1y agoXWayland is still supported, and afaik will be for some time. It's only standalone Xorg which isn't.
- DonaldFisk 1y agoThanks, this might be what I'm looking for. It's covered here: https://wayland.freedesktop.org/docs/html/ch05.html https://wayland.freedesktop.org/docs/html/ch05.html and https://www.mankier.com/1/Xwayland https://www.mankier.com/1/Xwayland
- wizzwizz4 1y agoAriadne Conill is turning Xwayland into a full X11 replacement: https://github.com/kaniini/wayback https://github.com/kaniini/wayback. She doesn't want to maintain it long-term, so if you're interested in contributing, please do: the more people understand the codebase, the better.
- deleted 1y ago[deleted]
- bpfrh 1y agoIsn't libwayland-client the replacement? E.g. you now use the wayland calls instead of x11 calls
- DonaldFisk 1y agoSpecifically, I mean functions such as XCreateSimpleWindow, XDrawRectangle, XDrawArc, XmbDrawString, XNextEvent, etc.