3 ms·
While X is a giant program that offers a lot of features, Wayland is not a program but a protocol. Wayland composotors, implementations of Wayland protocol, are
by kbumsik 8y ago
While X is a giant program that offers a lot of features, Wayland is not a program but a protocol. Wayland composotors, implementations of Wayland protocol, are usually intertwined with their desktop environments. So I guess similar examples using Wayland are not as universal as using X and do not help much to learn about Wayland itself.
Still, there is a convenient Wayland compositor library that is designed for devs to build own window managers. Check wlc [1]. wlc has a nice and simple example [2] but not as short as TinyWM.
[1]: https://github.com/Cloudef/wlc https://github.com/Cloudef/wlc
[2]: https://github.com/Cloudef/wlc/blob/master/example/example.c https://github.com/Cloudef/wlc/blob/master/example/example.c
- kevin_thibedeau 8y agoX is also a protocol. It's what allows ancient clients to still render onto modern X servers.