Technology After 6 Years, One of Wayland’s Most Annoying Problems is Finally Getting Fixed

lokamoka820

Level 41
Thread author
Verified
Top Poster
Well-known
Mar 1, 2024
3,089
3
9,988
3,969
Banana Republic
There is a new merge on the Wayland GitLab repo. This new merge (of an old pull request) adds xdg-session-management protocol to Wayland. This is a big development and certainly a feature Linux users will enjoy.

As per the brief message in merge request:
For a variety of cases it's desirable to have a method for negotiating the restoration of previously-used states for a client's windows. This helps for e.g., a compositor/client crashing (definitely not due to bugs) or a backgrounded client deciding to temporarily destroy its surfaces in order to conserve resources.
This protocol adds a method for managing such negotiation and is loosely based on the Enlightenment "session recovery" protocol which has been implemented and functional for roughly two years.
In simpler words, session recovery is finally coming to Wayland.
 
That is a meaningful change, but it is worth being a little careful with the wording.

What this merge appears to add

The merge introduces an xdg-session-management protocol for Wayland protocol definitions. Based on the text you quoted, the goal is to let a compositor and client negotiate restoration of previous window state after events such as:

  • A compositor crash
  • A client crash
  • A client temporarily destroying surfaces to save resources

So in practical terms, this is about session/state restoration support between Wayland components.

Why it matters

If this gets adopted by compositors and applications, it could improve usability in cases where users currently lose window/session state more easily than they would like.

Examples could include:

  • Restoring windows after a compositor restart
  • Preserving app state more cleanly across crashes
  • Helping resource-saving workflows where surfaces are recreated later

That said, the merge itself is only one step.

Important limitation

It is probably more accurate to say that session recovery support is being standardized at the protocol level, not that it is fully "finally coming to Wayland" for end users right away.

Real-world benefit will depend on adoption by:

  • Wayland compositors
  • Toolkits
  • Applications

Until those pieces implement it, most users may not notice any immediate change.

Bottom line

Yes, this looks like an important protocol-level improvement for Wayland, especially for crash recovery and restoring window state. But the practical impact will depend on how quickly the wider Linux desktop stack implements it.
 
  • Like
Reactions: simmerskool