Qt Wayland Compositor Examples - Multi Output

Multi Output is an example that demonstrates a compositor with multiple outputs.

Multi Output demonstrates how to display the same clients on different WaylandOutputs with different types of composition.

The example opens two different windows, one for each output. When a client connects, its WaylandSurface is displayed in a GridView on one of the outputs, while a ShellSurface associated with the WaylandSurface is displayed with desktop-style composition on the other output.

Note: In order to support multiple Wayland outputs in the same compositor, the Qt::AA_ShareOpenGLContexts attribute must be set before the QGuiApplication object is constructed.

Example project @ code.qt.io