wayland-protocols 1.50 Released

wayland-protocols 1.50 Released

wayland-protocols 1.50 was released on October 29. The core Wayland library itself is at 1.26.0 from July.

Why the protocol collection matters more than the library

Worth separating, because the two version numbers confuse people.

Wayland the library is small and barely changes. It provides the wire format and the object model. 1.26 in July and nothing since is normal and not a sign of stagnation.

wayland-protocols is where the actual capabilities live. Every feature beyond drawing a window is a protocol extension: fractional scaling, idle inhibition, screen capture, session management, colour management, tablet input.

So “Wayland cannot do X” is nearly always a statement about protocols, and usually about whether a protocol exists, has been standardised, and has been implemented by your compositor. Our Wayland versus X11 guide covers why the architecture works this way.

The three stages

A protocol in this repository sits in one of three directories, and knowing which explains most compatibility questions.

StageMeaning
staging/Agreed design, may still change
stable/Frozen, backward compatible forever
unstable/Older experimental tier, being phased out

A protocol reaching stable/ is the milestone, because it means compositors can implement it knowing it will not change, and applications can depend on it.

# what your system has
ls /usr/share/wayland-protocols/stable/
ls /usr/share/wayland-protocols/staging/
pkg-config --modversion wayland-protocols
# what your compositor actually implements, which is the real question
wayland-info | grep -E 'interface|version' | head -40
wayland-info | grep -i fractional

wayland-info is the diagnostic command worth knowing. A protocol being in the collection means nothing if your compositor has not implemented it, and this lists what the running compositor advertises.

The gap that causes real problems

The recurring frustration with Wayland has never been the protocol collection. It is the lag between three things:

  1. A protocol being standardised here
  2. Compositors implementing it
  3. Toolkits and applications using it

A protocol can be stable for a year while one major compositor has not implemented it, which from a user’s perspective is indistinguishable from the protocol not existing. Fractional scaling was the long-running example, covered in our HiDPI guide, and GTK 4.24’s fractional scaling work was the toolkit end of that same chain arriving years after the protocol.

The things still most commonly missing or uneven across compositors:

  • Session restore, so applications reopen where they were
  • Global shortcuts for applications that are not focused, which goes through portals
  • Colour management, which has been in progress for a long time
  • Various accessibility interfaces, per our accessibility guide

Why this is good design despite the lag

The slowness is the trade-off for the thing X11 could not do: a protocol here works everywhere it is implemented. A feature is not a GNOME feature or a KDE feature, it is a Wayland feature that compositors can adopt.

X11’s equivalent extensions accumulated for thirty years with no mechanism for removing the ones that turned out to be mistakes, which is a substantial part of why it became difficult to maintain. With Plasma 6.8 having dropped the X11 session, this repository is now where desktop Linux capability is negotiated.

Background reading

Explainers for the concepts behind this story.