5 ms·
I'm confused too so I upvoted you. Any information most welcome.
by TacticalCoder 3y ago
I'm confused too so I upvoted you.
Any information most welcome.
- tapoxi 3y agotl:dr an app connects to the Wayland compositor (like an X server) and sends it draw commands using the Wayland protocol. The compositor accepts these connections on a Unix socket, /run/user/1000/wayland-0 by default The protocol is defined in the libwayland library. Most apps don't use libwayland directly, but their widget toolkit like GTK or Qt does it for them.
- blibble 3y agoat the risk of appearing pedantic: whereas a large chunk of X11 is dedicated to draw commands (circle here, line here, pixel here): wayland doesn't have any instead it's all shared memory buffers
- LoganDark 3y agoX was designed to be used over a network, where sending buffers would have been very slow. Sending primitive draw commands, on the other hand, was much faster.