Part 2 of a series on building a Wayland compositor from scratch using wlroots. Covers how to start accepting Wayland client connections by adding a socket via wl_display_add_socket_auto, registering several wlroots global interfaces (shm, gamma control, screenshooter, primary selection, idle), and exposing wl_output globals so clients can query display resolution. Demonstrates verifying the setup using weston-info and taking a screenshot with the orbital screenshooter example client.

4m read timeFrom drewdevault.com
Post cover image

Sort: