whatis wayland

Wayland

The modern Linux display protocol replacing X11, in which the compositor draws the screen and isolates each app's windows and input.

What Is Wayland in Linux?

Wayland defines how graphical applications hand their window contents to a compositor, which is also the display server. GNOME, KDE Plasma, and Sway all act as Wayland compositors, and most major desktops now default to it.

Because each client is isolated, apps cannot read other windows or keystrokes by default. That improves security and makes smooth fractional scaling possible, but tasks like screen sharing and global hotkeys go through portals instead. XWayland keeps older X11 apps running.

Example

echo $XDG_SESSION_TYPE
# wayland