GNOME 40 Will Now Handle XWayland On-Demand By Default

Written by Michael Larabel in GNOME on 19 January 2021 at 09:36 AM EST. 44 Comments
GNOME
Back in 2019 support was added to GNOME 3.34 to allow starting XWayland on-demand. With this opt-in feature, XWayland support would only be started up when needed (on-demand) for running X11 clients. That support has now matured enough where for the upcoming GNOME 40 it will be enabled by default.

As of today in Mutter 40 is the enabling by default of the XWayland on-demand handling. This comes following a more robust check for helping to ensure X11 clients are no longer active prior to terminating XWayland. That plus other work now allows it to be enabled by default.

The latest code is deemed good enough to make XWayland on-demand by default so that XWayland will only be fired up when needed. But while the start-up will be on-demand, for terminating XWayland when clients are no longer active will be left up to an opt-in (experimental) feature... The "autoclose-xwayland" option will need to be enabled if you want XWayland to shutdown when it believes there are no longer any X11 clients active.

Red Hat's Olivier Fourdan who spearheaded the work explained of the autoclose-xwayland need, "Closing automatically Xwayland once all relevant X11 clients are gone is inherently racy, if a new client comes along right at the time we're killing Xwayland. Fixing the possible race conditions between mutter, Xwayland and the X11 clients may take some time."

GNOME 40 is shaping up to be a big release due out in March.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week