First part of a series on building a Wayland compositor from scratch using wlroots. Covers initializing the Wayland display and event loop, creating a backend (DRM, libinput, Wayland, X11), handling output signals, setting output modes, and rendering a solid red frame using wlr_renderer and OpenGL buffer swapping. Code is presented as incremental diffs against a companion GitHub repository.
Sort: