Diego Barros Araya
All work

Ardour on Wayland

A native Wayland backend for the old GUI toolkit inside Ardour, the open-source audio workstation, without breaking X11.

The constraint

Ardour ships its own fork of an old GUI toolkit that only knew X11. It is a large C++ codebase, and much of it assumed an X11 display was always there.

The decision

I added a Wayland backend to the toolkit fork and a switch that picks Wayland or X11 at run time. X11 stays the default, and code that assumed an X11 display now checks first.

The safeguard

All tests run without a desktop: on a headless Wayland compositor under valgrind, on a virtual X server for the X11 path, and on a headless sway with a virtual pointer and keyboard. A fix that passes on integer scales but fails on fractional ones stays out of the branch until its test passes.

The result

The editor, mixer, dialogs, menus and plugin windows run as a native Wayland client.

The trade-off

It is a work in progress and not ready for daily use. Only sway was tried, mixed-scale layouts can leave parts of a window blank, and X11 plugin editors fall back to the generic plugin window.

Source on GitHub