examples: add output-layers example

This new example demonstrates how to use the wlr_output_layer API. It's
a compositor that displays all client surfaces using wlr_output_layer.
To test, one can for instance run:

    build/examples/output-layers -s 'weston-simple-dmabuf-egl & weston-simple-egl'

Under the Wayland backend (where layers work as long as clients use
DMA-BUFs), this should display two surfaces with remote wl_subsurfaces.
This commit is contained in:
Simon Ser 2020-01-09 18:43:22 +01:00
parent d6363c385f
commit 937204d769
2 changed files with 263 additions and 0 deletions

View file

@ -55,6 +55,10 @@ compositors = {
'src': 'scene-graph.c',
'proto': ['xdg-shell'],
},
'output-layers': {
'src': 'output-layers.c',
'proto': ['xdg-shell'],
},
}
clients = {