protocol: Clarify meaning of input region for cursors, DnD icons
[platform/upstream/wayland.git] / README.md
1 # Wayland
2
3 Wayland is a project to define a protocol for a compositor to talk to
4 its clients as well as a library implementation of the protocol.  The
5 compositor can be a standalone display server running on Linux kernel
6 modesetting and evdev input devices, an X application, or a wayland
7 client itself.  The clients can be traditional applications, X servers
8 (rootless or fullscreen) or other display servers.
9
10 The wayland protocol is essentially only about input handling and
11 buffer management.  The compositor receives input events and forwards
12 them to the relevant client.  The clients creates buffers and renders
13 into them and notifies the compositor when it needs to redraw.  The
14 protocol also handles drag and drop, selections, window management and
15 other interactions that must go through the compositor.  However, the
16 protocol does not handle rendering, which is one of the features that
17 makes wayland so simple.  All clients are expected to handle rendering
18 themselves, typically through cairo or OpenGL.
19
20 Building the wayland libraries is fairly simple, aside from libffi,
21 they don't have many dependencies:
22
23     $ git clone https://gitlab.freedesktop.org/wayland/wayland
24     $ cd wayland
25     $ meson build/ --prefix=PREFIX
26     $ ninja -C build/ install
27
28 where PREFIX is where you want to install the libraries.
29
30 See https://wayland.freedesktop.org for documentation.