EMZETT.
Login

X11 and Wayland

In short: X11 (X Window System) and Wayland are the two foundations on which Linux interfaces draw images. X11 dates from 1987, Wayland is the modern successor and now the default on the big desktops.

In more detail: With X11 there is a central X server that connects programs and screen, plus a window manager. With Wayland the compositor itself is the display server, which simplifies the architecture and makes it more secure.

In detail

FeatureX11Wayland
Age19872008
Securityprograms can spy on each otherprograms are isolated
Tearingpossibleusually avoided
Several monitors with different scalingdifficultgood
Remote accessssh -X, built invia RDP/VNC/PipeWire
Screenshots and shortcutsfreely possiblevia portals, with permission
NVIDIAbetter for a long timemuch better by now
  • XWayland: lets old X11 programs run under Wayland.
  • Recognising: echo $XDG_SESSION_TYPE shows x11 or wayland.
  • Development: GNOME and KDE switched to Wayland as default and plan to remove X11 sessions.
  • PipeWire: audio and video framework that enables screen sharing under Wayland.
  • Compositor examples: Mutter (GNOME), KWin (KDE), Sway, Hyprland, labwc.

See also: Display manager and login screen, Window managers and tiling window managers