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 60f314780b
commit 33aaa24b6b
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 265 additions and 0 deletions

View file

@ -44,6 +44,10 @@ compositors = {
'src': 'fullscreen-shell.c',
'proto': ['fullscreen-shell-unstable-v1'],
},
'output-layers': {
'src': 'output-layers.c',
'proto': ['xdg-shell'],
},
}
clients = {