3 ms·
The wayland protocol itself doesn't handle network transparency like X11 tries to (i say tries because there are issues with it). My understanding is that a la
by simcop2387 9y ago
The wayland protocol itself doesn't handle network transparency like X11 tries to (i say tries because there are issues with it). My understanding is that a large portion of it is done through shared memory, unix sockets and other things like that.
A detailed overview of it is here, https://en.wikipedia.org/wiki/Wayland_(display_server_protocol)#Overview https://en.wikipedia.org/wiki/Wayland_(display_server_protoc... .
Essentially the client connects to the socket created by the compositor and asks it to pass a surface (basically the same as a frame buffer) back that matches what the client wants to draw. The client then draws on the surface (via GL, raw pixels, cairo, etc.) and then tells the wayland compositor that the surface is ready to display. The surfaces can have a number of things set about them, such as the color depth, if they're hardware (gl, vulkan etc) capable and other things like that.
This is why it's hard to make wayland network transparent because the compistor and the client are much more intertwined than X11 and it's clients were. This enables better performance and eliminating tearing and a few other problems that X11 just isn't equipped to do normally. It does mean however that you should be able to make a wayland compositor that forwards the surfaces from itself to another wayland compositor similar to how X11 forwarding works, but this isn't specified as part of the wayland protocol itself.
My expectation for what will work best for that is something that allows using modern video and image compression to allow the transfer to occur without using as much bandwith as modern X11 apps require when forwarding them. This would also mean then that clients have to use the hardware available to them rather than the hardware available to the display server. With X11 it's possible to do GL remotely (i've never had that work well) but it'd be much more difficult to set this up over wayland.