I imagine there isn't a "Beginner's guide to wayland server programming" drifting around the web, and the weston source looks daunting.
Is there a barebones wayland server I can look at to give me an idea where to start? Something I can run under X that I can confirm is recieving input. I'm sure I can go from there.
Wayland is a protocol for a compositor to talk to its clients as well as a C library implementation of that protocol. The compositor can be a standalone display server running on Linux kernel modesetting and evdev input devices, an X application, or a wayland client itself.
Compile and install wlroots normally, then link to pkg-config --libs wlroots and add pkg-config --cflags wlroots to your compiler flags (or whatever pretty way of doing this your particular build system encourages). You also need to link to libwayland and wire up wayland-scanner to scan any protocols you want to use.
Display servers using the Wayland protocol are called compositors because they also act as compositing window managers.
Take a look at the Small Wayland Compositor. You can either use it as library to build upon, or check out how it does things internally if you want to start from scratch.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With