Wayland (display server protocol)

From Infogalactic: the planetary knowledge core
(Redirected from Wayland compositor)
Jump to: navigation, search

Lua error in package.lua at line 80: module 'strict' not found.

Wayland
Wayland Logo.svg
300px
Weston, the reference implementation of a Wayland server.
Original author(s) Kristian Høgsberg
Developer(s) freedesktop.org et al.
Initial release 30 September 2008; 16 years ago (2008-09-30)[1]
Stable release Wayland: 1.18,[2] Weston: 8.0[3] / 11 February 2020; 4 years ago (2020-02-11)
Written in C
Operating system official: Linux
unofficial: NetBSD, FreeBSD, DragonFly BSD[4]
Type
License MIT License[5]:{{{3}}}[6]:{{{3}}}[7]:{{{3}}}
Website wayland.freedesktop.org

Wayland is a communication protocol that specifies the communication between a display server and its clients, as well as a C library implementation of that protocol.[8]:{{{3}}} A display server using the Wayland protocol is called a Wayland compositor, because it additionally performs the task of a compositing window manager.

Wayland is developed by a group of volunteers initially led by Kristian Høgsberg as a free and open-source community-driven project with the aim of replacing the X Window System with a modern, secure[9][10]:{{{3}}}[11]:{{{3}}}[12]:{{{3}}} simpler windowing system in Linux and other Unix-like operating systems.[8]:{{{3}}}[13]:{{{3}}} The project's source code is published under the terms of the MIT License, a permissive free software licence.[13]:{{{3}}}[5]:{{{3}}}

As part of its efforts, the Wayland project also develops a reference implementation of a Wayland compositor called Weston.[8]:{{{3}}}

Overview

  1. The evdev module of the Linux kernel gets an event and sends it to the Wayland compositor.
  2. The Wayland compositor looks through its scenegraph to determine which window should receive the event. The scenegraph corresponds to what is on screen and the Wayland compositor understands the transformations that it may have applied to the elements in the scenegraph. Thus, the Wayland compositor can pick the right window and transform the screen coordinates to window local coordinates, by applying the inverse transformations. The types of transformation that can be applied to a window is only restricted to what the compositor can do, as long as it can compute the inverse transformation for the input events.
  3. As in the X case, when the client receives the event, it updates the UI in response. But in the Wayland case, the rendering happens by the client via EGL, and the client just sends a request to the compositor to indicate the region that was updated.
  4. The Wayland compositor collects damage requests from its clients and then re-composites the screen. The compositor can then directly issue an ioctl to schedule a pageflip with KMS.

Starting around 2010, Linux desktop graphics has moved from having "a pile of rendering interfaces... all talking to the X server, which is at the center of the universe" towards putting the Linux kernel and its components (i.e. Direct Rendering Infrastructure (DRI), Direct Rendering Manager (DRM)) "in the middle", with "window systems like X and Wayland ... off in the corner". This will be "a much-simplified graphics system offering more flexibility and better performance".[14]:{{{3}}}

Kristian Høgsberg could have added an extension to X as many recent projects have done, but preferred to "[push] X out of the hotpath between clients and the hardware" for reasons explained in the project's FAQ:[13]:{{{3}}}

<templatestyles src="Template:Blockquote/styles.css" />

What’s different now is that a lot of infrastructure has moved from the X server into the kernel (memory management, command scheduling, mode setting) or libraries (cairo, pixman, freetype, fontconfig, pango, etc.), and there is very little left that has to happen in a central server process. ... [An X server has] a tremendous amount of functionality that you must support to claim to speak the X protocol, yet nobody will ever use this. ... This includes code tables, glyph rasterization and caching, XLFDs (seriously, XLFDs!), and the entire core rendering API that lets you draw stippled lines, polygons, wide arcs and many more state-of-the-1980s style graphics primitives. For many things we've been able to keep the X.org server modern by adding extension such as XRandR, XRender and COMPOSITE ... With Wayland we can move the X server and all its legacy technology to an optional code path. Getting to a point where the X server is a compatibility option instead of the core rendering system will take a while, but we'll never get there if [we] don’t plan for it.

Wayland consists of a protocol and a reference implementation named Weston. The project is also developing versions of GTK and Qt that render to Wayland instead of to X. Most applications are expected to gain support for Wayland through one of these libraries without modification to the application.

Initial versions of Wayland have not provided network transparency, though Høgsberg noted in 2010 that network transparency is possible.[15]:{{{3}}} It was attempted as a Google Summer of Code project in 2011, but was not successful.[16]:{{{3}}} Adam Jackson has envisioned providing remote access to a Wayland application by either "pixel-scraping" (like VNC) or getting it to send a "rendering command stream" across the network (as in RDP, SPICE or X11).[17]:{{{3}}} As of early 2013, Høgsberg is experimenting with network transparency using a proxy Wayland server which sends compressed images to the real compositor.[18]:{{{3}}}[19]:{{{3}}} In August 2017, GNOME saw the first such pixel-scraping VNC server implementation under Wayland.[20]:{{{3}}}

Software architecture

Protocol architecture

In the Wayland protocol architecture, a client and a compositor communicate through the Wayland protocol using the reference implementation libraries.

Wayland protocol follows a client–server model in which clients are the graphical applications requesting the display of pixel buffers on the screen, and the server (compositor) is the service provider controlling the display of these buffers.

The Wayland reference implementation has been designed as a two-layer protocol:[21]:{{{3}}}

  • A low-level layer or wire protocol that handles the inter-process communication between the two involved processes​​client and compositor—​​and the marshalling of the data that they interchange. This layer is message-based and usually implemented using the kernel IPC services, specifically Unix domain sockets in the case of Linux and Unix-like operating systems.[22]:{{{3}}}
  • A high-level layer built upon it, that handles the information that client and compositor need to exchange to implement the basic features of a window system. This layer is implemented as "an asynchronous object-oriented protocol".[22]:{{{3}}}

While the low-level layer was written manually in C, the high-level layer is automatically generated from a description of the elements of the protocol stored in XML format.[23]:{{{3}}} Every time the protocol description of this XML file changes, the C source code that implements such protocol can be regenerated to include the new changes, allowing a very flexible, extensible and error-proof protocol.

The reference implementation of Wayland protocol is split in two libraries: a library to be used by Wayland clients called libwayland-client and a library to be used by Wayland compositors called libwayland-server.[22]:{{{3}}}

Protocol overview

The Wayland protocol is described as an "asynchronous object-oriented protocol".[22]:{{{3}}} Object-oriented means that the services offered by the compositor are presented as a series of objects living on the same compositor. Each object implements an interface which has a name, a number of methods (called requests) as well as several associated events. Every request and event has zero or more arguments, each one with a name and a data type. The protocol is asynchronous in the sense that requests do not have to wait for synchronized replies or ACKs, avoiding round-trip delay time and achieving improved performance.

The Wayland clients can make a request (a method invocation) on some object if the object's interface supports that request. The client must also supply the required data for the arguments of such request. This is the way the clients request services from the compositor. The compositor in turn sends information back to the client by causing the object to emit events (probably with arguments too). These events can be emitted by the compositor as a response to a certain request, or asynchronously, subject to the occurrence of internal events (such as one from an input device) or state changes. The error conditions are also signaled as events by the compositor.[22]:{{{3}}}

For a client to be able to make a request to an object, it first needs to tell the server the ID number it will use to identify that object.[22]:{{{3}}} There are two types of objects in the compositor: global objects and non-global objects. Global objects are advertised by the compositor to the clients when they are created (and also when they are destroyed), while non-global objects are usually created by other objects that already exist as part of their functionality.[24]:{{{3}}}

The interfaces and their requests and events are the core elements that define the Wayland protocol. Each version of the protocol includes a set of interfaces, along with their requests and events, which are expected to be in any Wayland compositor. Optionally, a Wayland compositor may define and implement its own interfaces that support new requests and events, thereby extending functionality beyond the core protocol.[22]:{{{3}}} To facilitate changes to the protocol, each interface contains a "version number" attribute in addition to its name; this attribute allows for distinguishing variants of the same interface. Each Wayland compositor exposes not only what interfaces are available, but also the supported versions of those interfaces.[22]:{{{3}}}

Wayland core interfaces

The interfaces of the current version of Wayland protocol are defined in the file protocol/wayland.xml of the Wayland source code.[23]:{{{3}}} This is an XML file that lists the existing interfaces in the current version, along with their requests, events and other attributes. This set of interfaces is the minimum required to be implemented by any Wayland compositor.

Some of the most basic interfaces of the Wayland protocol are:[22]:{{{3}}}

  • wl_display – the core global object, a special object to encapsulate the Wayland protocol itself
  • wl_registry – the global registry object, in which the compositor registers all the global objects that it wants to be available to all clients
  • wl_compositor – an object that represents the compositor, and is in charge of combining the different surfaces into one output
  • wl_surface – an object representing a rectangular area on the screen, defined by a location, size and pixel content
  • wl_buffer – an object that, when attached to a wl_surface object, provides its displayable content
  • wl_output – an object representing the displayable area of a screen
  • wl_pointer, wl_keyboard, wl_touch – objects representing different input devices like pointers or keyboards
  • wl_seat – an object representing a seat (a set of input/output devices) in multiseat configurations

A typical Wayland client session starts by opening a connection to the compositor using the wl_display object. This is a special local object that represents the connection and does not live within the server. By using its interface the client can request the wl_registry global object from the compositor, where all the global object names live, and bind those that the client is interested in. Usually the client binds at least a wl_compositor object from where it will request one or more wl_surface objects to show the application output on the display.[24]:{{{3}}}

Wayland extension interfaces

A Wayland compositor can define and export its own additional interfaces.[22]:{{{3}}} This feature is used to extend the protocol beyond the basic functionality provided by the core interfaces, and has become the standard way to implement Wayland protocol extensions. Certain compositors can choose to add custom interfaces to provide specialized or unique features. The Wayland reference compositor, Weston, used them to implement new experimental interfaces as a testbed for new concepts and ideas, some of which later became part of the core protocol (such as wl_subsurface interface added in Wayland 1.4[25]:{{{3}}}).

Extension protocols to the core protocol

XDG-Shell protocol

XDG-Shell protocol (see freedesktop.org for XDG) is an extended way to manage surfaces under Wayland compositors (not only Weston). The traditional way to manipulate (maximize, minimize, fullscreen, etc.) surfaces is to use the wl_shell_*() functions, which are part of the core Wayland protocol and live in libwayland-client. An implementation of the xdg-shell protocol, on the contrary, is supposed to be provided by the Wayland compositor. So you will find the xdg-shell-client-protocol.h header in the Weston source tree. Each Wayland compositor is supposed to provide its own implementation.

As of June 2014, XDG-Shell protocol was not versioned and still prone to changes.

xdg_shell is a protocol aimed to substitute wl_shell in the long term, but will not be part of the Wayland core protocol. It starts as a non-stable API, aimed to be used as a development place at first, and once features are defined as required by several desktop shells, it can be finally made stable. It provides mainly two new interfaces: xdg_surface and xdg_popup. The xdg_surface interface implements a desktop-style window that can be moved, resized, maximized, etc.; it provides a request for creating child/parent relationship. The xdg_popup interface implements a desktop-style popup/menu; an xdg_popup is always transient for another surface, and also has implicit grab.[26]:{{{3}}}

IVI-Shell protocol

IVI-Shell is an extension to the Wayland core protocol, targeting in-vehicle infotainment (IVI) devices.[27]

Rendering model

Wayland compositor and its clients use EGL to draw directly into the framebuffer; X.Org Server with XWayland and Glamor.

The Wayland protocol does not include a rendering API.[22]:{{{3}}}[13]:{{{3}}}[28]:{{{3}}}[29]:{{{3}}} Instead, Wayland follows a direct rendering model, in which the client must render the window contents to a buffer shareable with the compositor.[22]:{{{3}}} For that purpose, the client can choose to do all the rendering by itself, use a rendering library like Cairo or OpenGL, or rely on the rendering engine of high-level widget libraries with Wayland support, such as Qt or GTK. The client can also optionally use other specialized libraries to perform specific tasks, such as Freetype for font rendering.

The resulting buffer with the rendered window contents are stored in a wl_buffer object. The internal type of this object is implementation dependent. The only requirement is that the content data must be shareable between the client and the compositor. If the client uses a software (CPU) renderer and the result is stored in the system memory, then client and compositor can use shared memory to implement the buffer communication without extra copies. The Wayland protocol already natively provides this kind of shared memory buffer through the wl_shm and wl_shm_pool interfaces.[22]:{{{3}}} The drawback of this method is that the compositor may need to do additional work (usually to copy the shared data to the GPU) to display it, which leads to slower graphics performance.

The most typical case is for the client to render directly into a video memory buffer using a hardware (GPU) accelerated API such as OpenGL, OpenGL ES or Vulkan. Client and compositor can share this GPU-space buffer using a special handler to reference it.[30]:{{{3}}} This method allows the compositor to avoid the extra data copy through itself of the main memory buffer client-to-compositor-to-GPU method, resulting in faster graphics performance, and is therefore the preferred one. The compositor can further optimize the composition of the final scene to be shown on the display by using the same hardware acceleration API as an API client.

When rendering is completed in a shared buffer, the Wayland client should instruct the compositor to present the rendered contents of the buffer on the display. For this purpose, the client binds the buffer object that stores the rendered contents to the surface object, and sends a "commit" request to the surface, transferring the effective control of the buffer to the compositor.[21]:{{{3}}} Then the client waits for the compositor to release the buffer (signaled by an event) if it wants to reuse the buffer to render another frame, or it can use another buffer to render the new frame, and, when the rendering is finished, bind this new buffer to the surface and commit its contents.[22]:{{{3}}} The procedure used for rendering, including the number of buffers involved and their management, is entirely under the client control.[22]:{{{3}}}

Comparison with other window systems

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>

Differences between Wayland and X

There are several differences between Wayland and X in regards to performance, code maintainability, and security:[31]:{{{3}}}

Architecture 
The composition manager is a separate, additional feature in X, while Wayland merges display server and compositor as a single function.[32]:{{{3}}}[28]:{{{3}}} Also, it incorporates some of the tasks of the window manager, which in X is a separate client-side process.[33]:{{{3}}}
Compositing 
Compositing is optional in X, but mandatory in Wayland. Compositing in X is "active"; that is, the compositor must fetch all pixel data, which introduces latency. In Wayland, compositing is "passive", which means the compositor receives pixel data directly from clients.[34]:{{{3}}}
Rendering 
The X server itself is able to perform rendering, although it can also be instructed to display a rendered window sent by a client. In contrast, Wayland does not expose any API for rendering, but delegates to clients such tasks (including the rendering of fonts, widgets, etc.).[32]:{{{3}}}[28]:{{{3}}} Window decorations can be rendered on the client side (e.g., by a graphics toolkit) or on the server side (by the compositor).[35]:{{{3}}}
Security 
Wayland isolates the input and output of every window, achieving confidentiality, integrity and availability in both cases; the original X design lacks these important security features,[10]:{{{3}}}[11]:{{{3}}}[12]:{{{3}}} although some extensions have been developed trying to mitigate it.[36]:{{{3}}}[37]:{{{3}}}[38]:{{{3}}} Also, with the vast majority of the code running in the client, less code needs to run with root privileges, improving security,[10]:{{{3}}} although multiple popular Linux distributions now allow X to be run without root privileges.[39][40][41][42]
Inter-process communication 
The X server provides a basic communication method between X clients, later extended by ICCCM conventions. This X client-to-client communication is used by window managers and also to implement X sessions, selections and drag-and-drop, and other features. The Wayland core protocol does not support communication between wayland clients at all, and the corresponding functionality (if needed) should be implemented by the desktop environments (like KDE or GNOME), or by a third party (for example, by using native IPC of the underlying operating system).
Networking 
The X Window System is an architecture that was designed at its core to run over a network. Wayland does not offer network transparency by itself;[13]:{{{3}}} however, a compositor can implement any remote desktop protocol to achieve remote display. In addition, there is research into Wayland image streaming and compression that would provide remote frame buffer access similar to that of VNC.[19]:{{{3}}}

Compatibility with X

A screenshot showing xwayland

XWayland is an X Server running as a Wayland client, and thus is capable of displaying native X11 client applications in a Wayland compositor environment.[43]:{{{3}}} This is similar to the way XQuartz runs X applications in macOS’s native windowing system. The goal of XWayland is to facilitate the transition from X Window System to Wayland environments, providing a way to run unported applications in the meantime. XWayland was mainlined into X.Org Server version 1.16.[44]:{{{3}}}

Widget toolkits such as Qt5 and GTK3 can switch their graphical back-end at run time,[45]:{{{3}}} allowing users to choose at load time whether they want to run the application over X or over Wayland. Qt 5 provides the -platform command-line option[46]:{{{3}}} to that effect, whereas GTK 3 lets users select the desired GDK back-end by setting the GDK_BACKEND Unix environment variable.[45]:{{{3}}}[47]:{{{3}}}

Wayland compositors

Typical elements of a window. Neither Wayland nor X11 specifies what software is responsible for rendering the window decoration. Weston requires that they are drawn by the client, but KWin will implement server-side decoration.[35]:{{{3}}}

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>

Display servers that implement the Wayland display server protocol are also called Wayland compositors because they additionally perform the task of a compositing window manager.

  • Weston – the reference implementation of a Wayland compositor; Weston implements client side decorations
  • Lipstick – mobile graphical shell framework which implements Wayland compositor; it is used in Sailfish OS, Nemo Mobile and AsteroidOS[48]:{{{3}}}
  • Enlightenment claimed full Wayland support since version 0.20[49]:{{{3}}} but work is currently underway to land a complete Wayland compositor [50]
  • KWin has nearly complete Wayland support as of 2018[citation needed]
  • Mutter maintains a separate branch for the integration of Wayland for GNOME 3.9 (in September 2013)[51]:{{{3}}}
  • Clayland – a simple example Wayland compositor using Clutter
  • Westeros – a Wayland compositor library that allows applications to create their own Wayland displays, which allows nesting and embedding of third party applications[52]
  • wlroots – a modular Wayland implementation that functions as a base for other compositors, most notably Sway[53][54]
  • Sway – a tiling Wayland compositor and a drop-in replacement for the i3 window manager for X11[55]

Weston

Weston is the reference implementation of a Wayland compositor[56] also developed by the Wayland project. It is written in C and published under the MIT License. Weston has official support for only the Linux operating system due to Weston's dependence on certain features of the Linux kernel, such as kernel mode-setting, Graphics Execution Manager (GEM), and udev, which have not been implemented in other Unix-like operating systems.[57]:{{{3}}} When running on Linux, handling of the input hardware relies on evdev, while the handling of buffers relies on Generic Buffer Management (GBM). However, in 2013 a prototype port of Weston to FreeBSD was announced.[58]:{{{3}}}

Weston supports High-bandwidth Digital Content Protection (HDCP).[59]

Weston relies on GEM to share application buffers between the compositor and applications. It contains a plug-in system of "shells" for common desktop features like docks and panels.[19]:{{{3}}} Clients are responsible for the drawing of their window borders and their decorations. For rendering, Weston can use OpenGL ES[60]:{{{3}}} or the pixman library to do software rendering.[61]:{{{3}}} The full OpenGL implementation is not used, because on most current systems, installing the full OpenGL libraries would also install GLX and other X Window System support libraries as dependencies.[62]:{{{3}}}

A remote access interface for Weston was proposed in October 2013 by a RealVNC employee.[63]:{{{3}}}

Maynard

File:Maynard desktop.png
Maynard desktop in January 2017

Maynard is a graphical shell and has been written as a plug-in for Weston, just as the GNOME Shell has been written as a plug-in to Mutter.[64]:{{{3}}}

libinput

libinput was created to consolidate the input stack across multiple Wayland compositors.

The Weston code for handling input devices (keyboards, pointers, touch screens, etc.) was split into its own separate library, called libinput, for which support was first merged in Weston 1.5.[65]:{{{3}}}[66]:{{{3}}}

Libinput handles input devices for multiple Wayland compositors and also provides a generic X.Org Server input driver. It aims to provide one implementation for multiple Wayland compositors with a common way to handle input events while minimizing the amount of custom input code compositors need to include. libinput provides device detection[clarification needed] (via udev), device handling, input device event processing and abstraction.[67]:{{{3}}}[68]:{{{3}}}

Version 1.0 of libinput followed version 0.21, and included support for tablets, button sets and touchpad gestures. This version will maintain stable API/ABI.[69]:{{{3}}}

As GNOME/GTK and KDE Frameworks 5[70]:{{{3}}} have mainlined the required changes, Fedora 22 will replace X.Org's evdev and Synaptics drivers with libinput.[71]:{{{3}}}

With version 1.16, the X.Org Server obtained support for the libinput library in form of a wrapper called xf86-input-libinput.[72]:{{{3}}}[73]:{{{3}}}

Wayland Security Module

Wayland Security Module is a proposition that resembles the Linux Security Module interface found in the Linux kernel.[74]:{{{3}}}

Some applications (especially the ones related to accessibility) require privileged capabilities that should work across different Wayland compositors. Currently,[when?] applications under Wayland are generally unable to perform any sensitive tasks such as taking screenshots or injecting input events. Wayland developers are actively looking for feasible ways to handle privileged clients securely and then designing privileged interfaces for them.

Wayland Security Module is a way to delegate security decisions within the compositor to a centralized security decision engine.[74]:{{{3}}}

Adoption

The Wayland protocol is designed to be simple so that additional protocols and interfaces need to be defined and implemented to achieve a holistic windowing system. As of July 2014 these additional interfaces were being worked on. So, while the toolkits already fully support Wayland, the developers of the graphical shells are cooperating with the Wayland developers creating the necessary additional interfaces.

Desktop Linux distributions

As of 2020 most Linux distributions support Wayland out of the box, some notable examples are:

  • Fedora starting with version 25 (released 22 November 2016) uses Wayland for the default GNOME 3.22 desktop session, with X.Org as a fallback if the graphics driver cannot support Wayland.[75]
  • Ubuntu ships Wayland as default in Ubuntu 17.10 (Artful Aardvark).[76] Ubuntu reverted to X.Org for Ubuntu 18.04 LTS, as Wayland still has issues with screen sharing and remote desktop applications, and does not recover as well from window manager crashes.[77][78] As of the 20.10 release of Ubuntu, Xorg was still the default.[79]
  • Red Hat Enterprise Linux ships Wayland as the default session in version 8, released 7 May 2019.[80]
  • Debian ships Wayland as the default session for GNOME since version 10, released 6 July 2019.[81]
  • Slackware Linux included Wayland on 20 February 2020[82] for the development version, -current, which will eventually become version 15.0.
  • Manjaro ships Wayland as default in Manjaro 20.2 (Nibia) (released 22 November 2020).[83]

Notable early adopter:

  • RebeccaBlackOS is a live USB Debian-based[84] Linux distribution that allows a convenient way to try out a real Wayland desktop without having to make any modifications to the main operating system of the computer.[85] It has been used since as early as 2012 to showcase Wayland.[86][87]

Toolkit support

Toolkits supporting Wayland include the following:

  • Clutter has complete Wayland support.[88]:{{{3}}}[89]:{{{3}}}[90]:{{{3}}}
  • EFL has complete Wayland support, except for selection.[91]:{{{3}}}
  • GTK 3.20 has complete Wayland support.[92]:{{{3}}}
  • Qt 5 has complete Wayland support, and can be used to write both Wayland compositors and Wayland clients.
  • SDL support for Wayland debuted with the 2.0.2 release[93]:{{{3}}} and was enabled by default since version 2.0.4.[94]:{{{3}}}
  • GLFW 3.2 has Wayland support.[95]:{{{3}}}
  • FreeGLUT has initial Wayland support.[96]:{{{3}}}

Desktop environments

Desktop environments in process of being ported from X to Wayland include GNOME,[97]:{{{3}}} KDE Plasma 5[98]:{{{3}}} and Enlightenment.[99]:{{{3}}}

In November 2015, Enlightenment e20 was announced with full Wayland support.[100]:{{{3}}}[49]:{{{3}}}[101]:{{{3}}} GNOME 3.20 was the first version to have a full Wayland session.[102]:{{{3}}} GNOME 3.22 included much improved Wayland support across GTK, Mutter, and GNOME Shell.[103] GNOME 3.24 shipped support for the proprietary NVidia drivers under Wayland.[104]

Wayland support for KDE Plasma was delayed until the release of Plasma 5,[105]:{{{3}}} though previously KWin 4.11 got an experimental Wayland support.[106]:{{{3}}} The version 5.4 of Plasma was the first with a Wayland session.[107]:{{{3}}} During 2020 Klipper was ported to Wayland and the next 5.20 release in October 2020 has the goal to improve screen casting and recording.[108] At least one core part of KDE: sddm is yet to be ported to Wayland as of September 2020.[109]

Other software

Other software supporting Wayland includes the following:

  • Intelligent Input Bus is working on Wayland support, it could be ready for Fedora 22.[110]:{{{3}}}
  • RealVNC published a Wayland developer preview in July 2014.[63]:{{{3}}}[111]:{{{3}}}[112]:{{{3}}}
  • Maliit is an input method framework that runs under Wayland.[113]:{{{3}}}[114]:{{{3}}}[115]:{{{3}}}
  • kmscon supports Wayland with wlterm.[116]:{{{3}}}
  • Mesa has Wayland support integrated.[117]:{{{3}}}
  • Eclipse was made to run on Wayland during a GSoC-Project in 2014.[118]:{{{3}}}
  • The Vulkan WSI (Window System Interface) is a set of API calls serve a similar purpose as EGL does for OpenGL ES or GLX for OpenGL. Vulkan WSI includes support for Wayland from day one: VK_USE_PLATFORM_WAYLAND_KHR. Vulkan clients can run on unmodified Wayland servers, including Weston, GENIVI LayerManager, Mutter / GNOME Shell, Enlightenment, and more. The WSI allows applications to discover the different GPUs on the system, and display the results of GPU rendering to a window system.[119]:{{{3}}}
  • SPURV, a compatibility layer for Android applications to run on GNU/Linux distributions using Wayland

Mobile and embedded hardware

Mobile and embedded hardware supporting Wayland includes the following:

History

Wayland uses direct rendering over EGL.

Kristian Høgsberg, a Linux graphics and X.Org developer who previously worked on AIGLX and DRI2, started Wayland as a spare-time project in 2008 while working for Red Hat.[130]:{{{3}}}[131]:{{{3}}}[132]:{{{3}}}[133]:{{{3}}} His stated goal was a system in which "every frame is perfect, by which I mean that applications will be able to control the rendering enough that we'll never see tearing, lag, redrawing or flicker." Høgsberg was driving through the town of Wayland, Massachusetts when the underlying concepts "crystallized", hence the name.[132]:{{{3}}}[134]:{{{3}}}

In October 2010, Wayland became a freedesktop.org project.[135]:{{{3}}}[136]:{{{3}}} As part of the migration the prior Google Group was replaced by the wayland-devel mailing list as the project's central point of discussion and development.

The Wayland client and server libraries were initially released under the MIT License,[137]:{{{3}}} while the reference compositor Weston and some example clients used the GNU General Public License version 2.[138]:{{{3}}} Later all the GPL code was relicensed under the MIT license "to make it easier to move code between the reference implementation and the actual libraries".[139]:{{{3}}} In 2015 it was discovered that the license text used by Wayland was a slightly different and older version of the MIT license, and the license text was updated to the current version used by the X.Org project (known as MIT Expat License).[5]:{{{3}}}

Wayland works with all Mesa-compatible drivers with DRI2 support[117]:{{{3}}} as well as Android drivers via the Hybris project.[140]:{{{3}}}[141]:{{{3}}}[142]:{{{3}}}

The developers of Wayland are largely current X.Org Server developers.[18]:{{{3}}}

Releases

Major Wayland and Weston releases[143]:{{{3}}}
Version Date Main features
Wayland Weston
Old version, no longer supported: 0.85 9 February 2012[144]:{{{3}}} First release.
Old version, no longer supported: 0.95 24 July 2012[145]:{{{3}}} Began API stabilization.
Old version, no longer supported: 1.0 22 October 2012[146]:{{{3}}}[147]:{{{3}}} Stable wayland-client API.
Old version, no longer supported: 1.1 15 April 2013[148]:{{{3}}}[149]:{{{3}}} Software rendering.[61]:{{{3}}} FBDEV, RDP backends.
Old version, no longer supported: 1.2 12 July 2013[150]:{{{3}}}[151]:{{{3}}} Stable wayland-server API. Color management. Subsurfaces. Raspberry Pi backend.
Old version, no longer supported: 1.3 11 October 2013[152]:{{{3}}} More pixel formats. Support for language bindings. Android driver support via libhybris.
Old version, no longer supported: 1.4 23 January 2014[25]:{{{3}}} New wl_subcompositor and wl_subsurface interfaces. Multiple framebuffer formats. logind support for rootless Weston.
Old version, no longer supported: 1.5 20 May 2014[65]:{{{3}}} libinput. Fullscreen shell.
Old version, no longer supported: 1.6 19 September 2014[153]:{{{3}}} libinput by default.
Old version, no longer supported: 1.7 14 February 2015[154]:{{{3}}}[155]:{{{3}}} Support for the Wayland presentation extension and for surface roles. IVI shell protocol.
Old version, no longer supported: 1.8 2 June 2015[156]:{{{3}}}[157]:{{{3}}} Separated headers for core and generated protocol. Repaint scheduling. Named outputs. Output transformations. Surface-shooting API.
Old version, no longer supported: 1.9 21 September 2015[158]:{{{3}}}[159]:{{{3}}} Updated license. Updated license. New test framework. Triple-head DRM compositor. linux_dmabuf extension.
Old version, no longer supported: 1.10 17 February 2016[160]:{{{3}}}[161]:{{{3}}} Drag-and-drop functionality, grouped pointer events.[162]:{{{3}}} Video 4 Linux 2, touch input, debugging improvements.[163]:{{{3}}}
Old version, no longer supported: 1.11 1 June 2016[164]:{{{3}}}[165]:{{{3}}} New backup loading routine, new setup logic. Proxy wrappers, shared memory changes, Doxygen-generated HTML docs.
Old version, no longer supported: 1.12 21 September 2016[166]:{{{3}}}[167]:{{{3}}} Debugging support improved. libweston and libweston-desktop. Pointer locking and confinement. Relative pointer support.
Old version, no longer supported: 1.13 24 February 2017[168]:{{{3}}}[169]:{{{3}}} The ABI of Weston has been changed, thus the new version was named 2.0.0 rather than 1.13.0.
Old version, no longer supported: 1.14 8 August 2017[170]:{{{3}}}[171]:{{{3}}} Weston 3.0.0 was released at the same time.
Old version, no longer supported: 1.15 9 April 2018[172]:{{{3}}}[173]:{{{3}}} Weston 4.0.0 was released at the same time.
Old version, no longer supported: 1.16 24 August 2018[174]:{{{3}}}[175]:{{{3}}} Weston 5.0.0 was released at the same time.
Old version, no longer supported: 1.17 20 March 2019[176]:{{{3}}}[177]:{{{3}}} Weston 6.0.0 was released at the same time.
Current stable version: 1.18 2 August 2019[2]:{{{3}}}[178]:{{{3}}} Weston 7.0.0 was released one month later.
Weston 8[179] 24 January 2020
Weston 9[180] 4 September 2020
Legend:
Old version
Older version, still supported
Latest version
Latest preview version
Future release

See also

References

  1. Lua error in package.lua at line 80: module 'strict' not found.
  2. 2.0 2.1 Lua error in package.lua at line 80: module 'strict' not found.
  3. Lua error in package.lua at line 80: module 'strict' not found.
  4. Lua error in package.lua at line 80: module 'strict' not found.
  5. 5.0 5.1 5.2 Lua error in package.lua at line 80: module 'strict' not found.
  6. Lua error in package.lua at line 80: module 'strict' not found.
  7. Lua error in package.lua at line 80: module 'strict' not found.
  8. 8.0 8.1 8.2 Lua error in package.lua at line 80: module 'strict' not found.
  9. Lua error in package.lua at line 80: module 'strict' not found.
  10. 10.0 10.1 10.2 Lua error in package.lua at line 80: module 'strict' not found.
  11. 11.0 11.1 Lua error in package.lua at line 80: module 'strict' not found.
  12. 12.0 12.1 Lua error in package.lua at line 80: module 'strict' not found.
  13. 13.0 13.1 13.2 13.3 13.4 Lua error in package.lua at line 80: module 'strict' not found.
  14. Lua error in package.lua at line 80: module 'strict' not found.
  15. Lua error in package.lua at line 80: module 'strict' not found.
  16. Lua error in package.lua at line 80: module 'strict' not found.
  17. Lua error in package.lua at line 80: module 'strict' not found.
  18. 18.0 18.1 Lua error in package.lua at line 80: module 'strict' not found.
  19. 19.0 19.1 19.2 Lua error in package.lua at line 80: module 'strict' not found.
  20. Lua error in package.lua at line 80: module 'strict' not found.
  21. 21.0 21.1 Lua error in package.lua at line 80: module 'strict' not found.
  22. 22.00 22.01 22.02 22.03 22.04 22.05 22.06 22.07 22.08 22.09 22.10 22.11 22.12 22.13 22.14 Lua error in package.lua at line 80: module 'strict' not found.
  23. 23.0 23.1 Lua error in package.lua at line 80: module 'strict' not found.
  24. 24.0 24.1 Lua error in package.lua at line 80: module 'strict' not found.
  25. 25.0 25.1 Lua error in package.lua at line 80: module 'strict' not found.
  26. Lua error in package.lua at line 80: module 'strict' not found.
  27. Lua error in package.lua at line 80: module 'strict' not found.
  28. 28.0 28.1 28.2 Lua error in package.lua at line 80: module 'strict' not found.
  29. Lua error in package.lua at line 80: module 'strict' not found.
  30. Lua error in package.lua at line 80: module 'strict' not found.
  31. Lua error in package.lua at line 80: module 'strict' not found.
  32. 32.0 32.1 Lua error in package.lua at line 80: module 'strict' not found.
  33. Lua error in package.lua at line 80: module 'strict' not found.
  34. Lua error in package.lua at line 80: module 'strict' not found.
  35. 35.0 35.1 Lua error in package.lua at line 80: module 'strict' not found.
  36. Lua error in package.lua at line 80: module 'strict' not found.
  37. Lua error in package.lua at line 80: module 'strict' not found.
  38. Lua error in package.lua at line 80: module 'strict' not found.
  39. Lua error in package.lua at line 80: module 'strict' not found.
  40. Lua error in package.lua at line 80: module 'strict' not found.
  41. Lua error in package.lua at line 80: module 'strict' not found.
  42. Lua error in package.lua at line 80: module 'strict' not found.
  43. Lua error in package.lua at line 80: module 'strict' not found.
  44. Lua error in package.lua at line 80: module 'strict' not found.
  45. 45.0 45.1 Lua error in package.lua at line 80: module 'strict' not found.
  46. Lua error in package.lua at line 80: module 'strict' not found.
  47. Lua error in package.lua at line 80: module 'strict' not found.
  48. Lua error in package.lua at line 80: module 'strict' not found.
  49. 49.0 49.1 Lua error in package.lua at line 80: module 'strict' not found.
  50. Lua error in package.lua at line 80: module 'strict' not found.
  51. Lua error in package.lua at line 80: module 'strict' not found.
  52. Lua error in package.lua at line 80: module 'strict' not found.
  53. Lua error in package.lua at line 80: module 'strict' not found.
  54. Lua error in package.lua at line 80: module 'strict' not found.
  55. Lua error in package.lua at line 80: module 'strict' not found.
  56. Lua error in package.lua at line 80: module 'strict' not found.
  57. Lua error in package.lua at line 80: module 'strict' not found.
  58. Lua error in package.lua at line 80: module 'strict' not found.
  59. Lua error in package.lua at line 80: module 'strict' not found.
  60. Lua error in package.lua at line 80: module 'strict' not found.
  61. 61.0 61.1 Lua error in package.lua at line 80: module 'strict' not found.
  62. Lua error in package.lua at line 80: module 'strict' not found.
  63. 63.0 63.1 Lua error in package.lua at line 80: module 'strict' not found.
  64. Lua error in package.lua at line 80: module 'strict' not found.
  65. 65.0 65.1 Lua error in package.lua at line 80: module 'strict' not found.
  66. Lua error in package.lua at line 80: module 'strict' not found.
  67. Lua error in package.lua at line 80: module 'strict' not found.
  68. Lua error in package.lua at line 80: module 'strict' not found.
  69. Lua error in package.lua at line 80: module 'strict' not found.
  70. Lua error in package.lua at line 80: module 'strict' not found.
  71. Lua error in package.lua at line 80: module 'strict' not found.
  72. Lua error in package.lua at line 80: module 'strict' not found.
  73. Lua error in package.lua at line 80: module 'strict' not found.
  74. 74.0 74.1 Lua error in package.lua at line 80: module 'strict' not found.
  75. Lua error in package.lua at line 80: module 'strict' not found.
  76. Lua error in package.lua at line 80: module 'strict' not found.
  77. Lua error in package.lua at line 80: module 'strict' not found.
  78. Lua error in package.lua at line 80: module 'strict' not found.
  79. Lua error in package.lua at line 80: module 'strict' not found.
  80. Lua error in package.lua at line 80: module 'strict' not found.
  81. Lua error in package.lua at line 80: module 'strict' not found.
  82. Lua error in package.lua at line 80: module 'strict' not found.
  83. Lua error in package.lua at line 80: module 'strict' not found.
  84. Lua error in package.lua at line 80: module 'strict' not found.
  85. Lua error in package.lua at line 80: module 'strict' not found.
  86. Lua error in package.lua at line 80: module 'strict' not found.
  87. Lua error in package.lua at line 80: module 'strict' not found.
  88. Lua error in package.lua at line 80: module 'strict' not found.
  89. Lua error in package.lua at line 80: module 'strict' not found.
  90. Lua error in package.lua at line 80: module 'strict' not found.
  91. Lua error in package.lua at line 80: module 'strict' not found.
  92. Lua error in package.lua at line 80: module 'strict' not found.
  93. Lua error in package.lua at line 80: module 'strict' not found.
  94. Lua error in package.lua at line 80: module 'strict' not found.
  95. Lua error in package.lua at line 80: module 'strict' not found.
  96. Lua error in package.lua at line 80: module 'strict' not found.
  97. Lua error in package.lua at line 80: module 'strict' not found.
  98. Lua error in package.lua at line 80: module 'strict' not found.
  99. Lua error in package.lua at line 80: module 'strict' not found.
  100. Lua error in package.lua at line 80: module 'strict' not found.
  101. Lua error in package.lua at line 80: module 'strict' not found.
  102. Lua error in package.lua at line 80: module 'strict' not found.
  103. Lua error in package.lua at line 80: module 'strict' not found.
  104. Lua error in package.lua at line 80: module 'strict' not found.
  105. Lua error in package.lua at line 80: module 'strict' not found.
  106. Lua error in package.lua at line 80: module 'strict' not found.
  107. Lua error in package.lua at line 80: module 'strict' not found.
  108. Lua error in package.lua at line 80: module 'strict' not found.
  109. Lua error in package.lua at line 80: module 'strict' not found.
  110. Lua error in package.lua at line 80: module 'strict' not found.
  111. Lua error in package.lua at line 80: module 'strict' not found.
  112. Lua error in package.lua at line 80: module 'strict' not found.
  113. Lua error in package.lua at line 80: module 'strict' not found.
  114. Lua error in package.lua at line 80: module 'strict' not found.
  115. Lua error in package.lua at line 80: module 'strict' not found.
  116. Lua error in package.lua at line 80: module 'strict' not found.
  117. 117.0 117.1 Hillesley, p. 3.
  118. Lua error in package.lua at line 80: module 'strict' not found.
  119. Lua error in package.lua at line 80: module 'strict' not found.
  120. Lua error in package.lua at line 80: module 'strict' not found.
  121. Lua error in package.lua at line 80: module 'strict' not found.
  122. Lua error in package.lua at line 80: module 'strict' not found.
  123. Lua error in package.lua at line 80: module 'strict' not found.
  124. Lua error in package.lua at line 80: module 'strict' not found.
  125. Lua error in package.lua at line 80: module 'strict' not found.
  126. Cite error: Invalid <ref> tag; no text was provided for refs named purism
  127. Lua error in package.lua at line 80: module 'strict' not found.
  128. Lua error in package.lua at line 80: module 'strict' not found.
  129. Lua error in package.lua at line 80: module 'strict' not found.
  130. Lua error in package.lua at line 80: module 'strict' not found.
  131. Lua error in package.lua at line 80: module 'strict' not found.
  132. 132.0 132.1 Lua error in package.lua at line 80: module 'strict' not found.
  133. Lua error in package.lua at line 80: module 'strict' not found.
  134. Lua error in package.lua at line 80: module 'strict' not found.
  135. Lua error in package.lua at line 80: module 'strict' not found.
  136. Lua error in package.lua at line 80: module 'strict' not found.
  137. Lua error in package.lua at line 80: module 'strict' not found.
  138. Lua error in package.lua at line 80: module 'strict' not found.
  139. Lua error in package.lua at line 80: module 'strict' not found.
  140. Lua error in package.lua at line 80: module 'strict' not found.
  141. Lua error in package.lua at line 80: module 'strict' not found.
  142. Lua error in package.lua at line 80: module 'strict' not found.
  143. Lua error in package.lua at line 80: module 'strict' not found.
  144. Lua error in package.lua at line 80: module 'strict' not found.
  145. Lua error in package.lua at line 80: module 'strict' not found.
  146. Lua error in package.lua at line 80: module 'strict' not found.
  147. Lua error in package.lua at line 80: module 'strict' not found.
  148. Lua error in package.lua at line 80: module 'strict' not found.
  149. Lua error in package.lua at line 80: module 'strict' not found.
  150. Lua error in package.lua at line 80: module 'strict' not found.
  151. Lua error in package.lua at line 80: module 'strict' not found.
  152. Lua error in package.lua at line 80: module 'strict' not found.
  153. Lua error in package.lua at line 80: module 'strict' not found.
  154. Lua error in package.lua at line 80: module 'strict' not found.
  155. Lua error in package.lua at line 80: module 'strict' not found.
  156. Lua error in package.lua at line 80: module 'strict' not found.
  157. Lua error in package.lua at line 80: module 'strict' not found.
  158. Lua error in package.lua at line 80: module 'strict' not found.
  159. Lua error in package.lua at line 80: module 'strict' not found.
  160. Lua error in package.lua at line 80: module 'strict' not found.
  161. Lua error in package.lua at line 80: module 'strict' not found.
  162. Lua error in package.lua at line 80: module 'strict' not found.
  163. Lua error in package.lua at line 80: module 'strict' not found.
  164. Lua error in package.lua at line 80: module 'strict' not found.
  165. Lua error in package.lua at line 80: module 'strict' not found.
  166. Lua error in package.lua at line 80: module 'strict' not found.
  167. Lua error in package.lua at line 80: module 'strict' not found.
  168. Lua error in package.lua at line 80: module 'strict' not found.
  169. Lua error in package.lua at line 80: module 'strict' not found.
  170. Lua error in package.lua at line 80: module 'strict' not found.
  171. Lua error in package.lua at line 80: module 'strict' not found.
  172. Lua error in package.lua at line 80: module 'strict' not found.
  173. Lua error in package.lua at line 80: module 'strict' not found.
  174. Lua error in package.lua at line 80: module 'strict' not found.
  175. Lua error in package.lua at line 80: module 'strict' not found.
  176. Lua error in package.lua at line 80: module 'strict' not found.
  177. Lua error in package.lua at line 80: module 'strict' not found.
  178. Lua error in package.lua at line 80: module 'strict' not found.
  179. https://lists.freedesktop.org/archives/wayland-devel/2020-January/041147.html
  180. https://lists.freedesktop.org/archives/wayland-devel/2020-September/041595.html

External links