Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do I start if I want to write a wayland compositor?

Tags:

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.

like image 244
J V Avatar asked Jul 25 '14 16:07

J V


People also ask

What is a wayland compositor?

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.

How do I use Wlroots?

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.

Is wayland a window manager?

Display servers using the Wayland protocol are called compositors because they also act as compositing window managers.


1 Answers

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.

like image 161
weltensturm Avatar answered Sep 21 '22 23:09

weltensturm