Add optional headless fallback output

This allows configuring a headless fallback output that
is automatically created whenever there is no other output
around. It is destroyed when a new output is discovered.

It can be enabled by setting the environment variable
LABWC_FALLBACK_OUTPUT to the desired output name.

The feature benefits applications like wayvnc the most
as there is always an output available to connect to.

Co-Authored-By: Simon Long <simon@raspberrypi.com>
This commit is contained in:
Consolatis 2024-03-07 02:11:46 +01:00
parent e00f7cd6db
commit 60aab98e8d
5 changed files with 63 additions and 1 deletions

View file

@ -8,5 +8,6 @@ struct wlr_output;
void output_virtual_add(struct server *server, const char *output_name,
struct wlr_output **store_wlr_output);
void output_virtual_remove(struct server *server, const char *output_name);
void output_virtual_update_fallback(struct server *server);
#endif